Skip to content

Commit 27eca6b

Browse files
committed
Regression: fixed wrong BUILTIN_AS_LAST comparator
This bug has been introduced with b3d01d8 Fix #7973
1 parent 0951efb commit 27eca6b

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

arduino-core/src/cc/arduino/contributions/packages/ContributedPlatform.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ public void setBuiltIn(boolean builtIn) {
8787
public static final Comparator<ContributedPlatform> BUILTIN_AS_LAST = (x, y) -> {
8888
int px = x.isBuiltIn() ? 1 : -1;
8989
int py = y.isBuiltIn() ? 1 : -1;
90-
return py - px;
90+
return px - py;
9191
};
9292

9393
private Map<ContributedToolReference, ContributedTool> resolvedToolReferences;

build/shared/revisions.txt

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ARDUINO 1.8.7 2018.09.11
77
* Fixed: IDE doesn't start if a library with invalid version is found.
88
* Fixed: Better dialog explaining that MacOSX 10.8 is now required. Thanks @PaulStoffregen
99
* Fixed: Slow "File" and "Tools" menus in MacOSX
10+
* Fixed: Weird Board Manager behaviour if AVR core is downgraded to a version earlier than 1.6.22
1011
* Improved first-use usability if the user don't select the serial port. Thanks @PaulStoffregen
1112
* Custom "Tools" menu now keeps the order as defined in boards.txt.
1213

0 commit comments

Comments
 (0)