Skip to content

Commit 9f15b0d

Browse files
committed
Removed TypePredicate
1 parent ac570c5 commit 9f15b0d

File tree

2 files changed

+1
-51
lines changed

2 files changed

+1
-51
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
package cc.arduino.contributions.libraries;
3131

3232
import cc.arduino.Constants;
33-
import cc.arduino.contributions.libraries.filters.TypePredicate;
3433
import cc.arduino.contributions.packages.ContributedPlatform;
3534
import com.fasterxml.jackson.databind.DeserializationFeature;
3635
import com.fasterxml.jackson.databind.ObjectMapper;
@@ -130,7 +129,7 @@ public void rescanLibraries() {
130129
}
131130

132131
installedLibraries.stream() //
133-
.filter(new TypePredicate("Contributed")) //
132+
.filter(l -> l.getTypes().contains("Contributed")) //
134133
.filter(l -> l.getLocation() == Location.CORE || l.getLocation() == Location.REFERENCED_CORE) //
135134
.forEach(l -> {
136135
ContributedPlatform platform = BaseNoGui.indexer.getPlatformByFolder(l.getInstalledFolder());

arduino-core/src/cc/arduino/contributions/libraries/filters/TypePredicate.java

-49
This file was deleted.

0 commit comments

Comments
 (0)