datanucleus / datanucleus-api-jdo

Support for DataNucleus persistence using the JDO API (JSR0012, JSR0243)
18 stars 27 forks source link

Update Array usage to JDK 8+ #105

Closed belugabehr closed 3 years ago

belugabehr commented 3 years ago

Recommended usage:

String[] y = x.toArray(new String[0]);

https://docs.oracle.com/javase/8/docs/api/java/util/Collection.html#toArray-T:A-

Use Arrays.toList() where appropriate. Already used in some places of the code.