[jOOQ/jOOQ#8528] Make code Java 6 compatible again...
This commit is contained in:
parent
8b1e281ea7
commit
f128109e46
@ -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);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user