From 076b9430c6974e6bd43e8a10b6e61192588fe633 Mon Sep 17 00:00:00 2001 From: Tagir Valeev Date: Wed, 24 Aug 2016 13:03:27 +0300 Subject: [PATCH] Explicit comparator removed as it's the same as natural ordering --- .../refactoring/typeMigration/TypeMigrationLabeler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java b/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java index 73c312e0791f..7986336279be 100644 --- a/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java +++ b/java/java-impl/src/com/intellij/refactoring/typeMigration/TypeMigrationLabeler.java @@ -1138,7 +1138,7 @@ public class TypeMigrationLabeler { } } - Arrays.sort(conversions, (x, y) -> x.compareTo(y)); + Arrays.sort(conversions); for (String conversion : conversions) { buffer.append(conversion); @@ -1154,7 +1154,7 @@ public class TypeMigrationLabeler { newChanges[k++] = (element != null ? element.getText() : entry.getKey()) + " -> " + entry.getValue().getCanonicalText() + "\n"; } - Arrays.sort(newChanges, (x, y) -> x.compareTo(y)); + Arrays.sort(newChanges); for (String change : newChanges) { buffer.append(change);