Skip to content

Commit

Permalink
Issue #4550
Browse files Browse the repository at this point in the history
Cleanup comparator

Signed-off-by: Greg Wilkins <gregw@webtide.com>
  • Loading branch information
gregw committed Feb 25, 2020
1 parent 39dd245 commit a95e40e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public class XmlConfiguration
if (compare == 0)
{
// favour primitive type over reference
compare = Boolean.compare(t2.isPrimitive(), t1.isPrimitive());
compare = Boolean.compare(!t1.isPrimitive(), !t2.isPrimitive());
if (compare == 0)
// Use name to avoid non determinant sorting
compare = t1.getName().compareTo(t2.getName());
Expand Down

0 comments on commit a95e40e

Please sign in to comment.