Merge pull request #2252 from yorlov/collection-to-array

Simplify array creation
This commit is contained in:
Ruben Dijkstra 2018-02-18 22:04:21 +01:00 committed by GitHub
commit 0070c759b0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -216,9 +216,7 @@ public class RelationalPathBase<T> extends BeanPath<T> implements RelationalPath
}
public Path<?>[] all() {
Path<?>[] all = new Path[columnMetadata.size()];
columnMetadata.keySet().toArray(all);
return all;
return columnMetadata.keySet().toArray(new Path<?>[columnMetadata.size()]);
}
@Override