Skip to content

Commit

Permalink
Use Arrays.equals() to compare two arrays
Browse files Browse the repository at this point in the history
Signed-off-by: Sheng Chen <[email protected]>
  • Loading branch information
jdneo authored and fbricon committed Jul 2, 2019
1 parent 4bf992e commit 672dc6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public static void updateBinaries(IJavaProject javaProject, Set<IPath> libFolder
newEntries.add(newEntry);
}
IClasspathEntry[] newClasspath = newEntries.toArray(new IClasspathEntry[newEntries.size()]);
if (!rawClasspath.equals(newClasspath)) {
if (!Arrays.equals(rawClasspath, newClasspath)) {
javaProject.setRawClasspath(newClasspath, monitor);
}
}
Expand Down

0 comments on commit 672dc6f

Please sign in to comment.