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);