Fix dogfood - ReturnEmptyCollectionRatherThanNull

This commit is contained in:
Andreas Dangel
2022-01-09 20:46:45 +01:00
parent 964083319e
commit 65b4ba58a7
2 changed files with 3 additions and 6 deletions

View File

@ -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) {

View File

@ -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());