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