Skip to content

Commit c5b1d86

Browse files
author
Federico Fissore
committed
Code cleanup
1 parent a05c672 commit c5b1d86

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

arduino-core/src/cc/arduino/contributions/libraries/ContributedLibrary.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,7 @@ public abstract class ContributedLibrary extends DownloadableContribution {
6363

6464
public abstract List<ContributedLibraryReference> getRequires();
6565

66-
public static final Comparator<ContributedLibrary> CASE_INSENSITIVE_ORDER = new Comparator<ContributedLibrary>() {
67-
@Override
68-
public int compare(ContributedLibrary o1, ContributedLibrary o2) {
69-
return o1.getName().compareToIgnoreCase(o2.getName());
70-
}
71-
};
66+
public static final Comparator<ContributedLibrary> CASE_INSENSITIVE_ORDER = (o1, o2) -> o1.getName().compareToIgnoreCase(o2.getName());
7267

7368
/**
7469
* Returns <b>true</b> if the library declares to support the specified

0 commit comments

Comments
 (0)