Fix dogfood - ReturnEmptyCollectionRatherThanNull
This commit is contained in:
@ -98,11 +98,7 @@ public class TypeSignatureVisitor extends SignatureVisitor {
|
|||||||
if (parameterTypes == null) {
|
if (parameterTypes == null) {
|
||||||
throw new RuntimeException();
|
throw new RuntimeException();
|
||||||
}
|
}
|
||||||
if (parameterTypes != null) {
|
return parameterTypes.toArray(new Class<?>[0]);
|
||||||
return parameterTypes.toArray(new Class<?>[0]);
|
|
||||||
} else {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void pushType(int type) {
|
private void pushType(int type) {
|
||||||
|
@ -15,6 +15,7 @@ import java.sql.ResultSet;
|
|||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.Properties;
|
import java.util.Properties;
|
||||||
@ -302,7 +303,7 @@ public class DBMSMetadata {
|
|||||||
|
|
||||||
if (null == dburi) {
|
if (null == dburi) {
|
||||||
LOGGER.warning("No dbUri defined - no further action possible");
|
LOGGER.warning("No dbUri defined - no further action possible");
|
||||||
return null;
|
return Collections.emptyList();
|
||||||
} else {
|
} else {
|
||||||
return getSourceObjectList(dburi.getLanguagesList(), dburi.getSchemasList(), dburi.getSourceCodeTypesList(),
|
return getSourceObjectList(dburi.getLanguagesList(), dburi.getSchemasList(), dburi.getSourceCodeTypesList(),
|
||||||
dburi.getSourceCodeNamesList());
|
dburi.getSourceCodeNamesList());
|
||||||
|
Reference in New Issue
Block a user