mirror of
https://github.com/querydsl/querydsl.git
synced 2026-06-30 21:08:30 +08:00
Merge pull request #2252 from yorlov/collection-to-array
Simplify array creation
This commit is contained in:
commit
0070c759b0
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user