Skip to content
Permalink
Browse files
Replace manual array copying with System.arraycopy
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/jxpath/trunk@1716256 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
britter committed Nov 24, 2015
1 parent 9880af9 commit 089fadf087283d02bb33ee2a8cd5a39ea833839a
Showing 1 changed file with 1 addition and 3 deletions.
@@ -78,9 +78,7 @@ public String[] getPropertyNames() {
if (names == null) {
String[] allNames = handler.getPropertyNames(getBean());
names = new String[allNames.length];
for (int i = 0; i < names.length; i++) {
names[i] = allNames[i];
}
System.arraycopy(allNames, 0, names, 0, names.length);
Arrays.sort(names);
if (requiredPropertyName != null) {
int inx = Arrays.binarySearch(names, requiredPropertyName);

0 comments on commit 089fadf

Please sign in to comment.