[jOOQ/jOOQ#8528] Make code Java 6 compatible again...

This commit is contained in:
Knut Wannheden 2019-09-18 13:44:52 +02:00
parent 8b1e281ea7
commit f128109e46

View File

@ -317,10 +317,11 @@ final class DDLInterpreter {
return primaryKey;
}
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public List<UniqueKey<Record>> getKeys() {
if (primaryKey == null)
return keys == null ? Collections.emptyList() : Collections.unmodifiableList(keys);
return keys == null ? Collections.emptyList() : Collections.unmodifiableList((List) keys);
else if (keys == null)
return Collections.singletonList(primaryKey);