File tree Expand file tree Collapse file tree 2 files changed +3
-52
lines changed
arduino-core/src/cc/arduino/contributions/libraries Expand file tree Collapse file tree 2 files changed +3
-52
lines changed Original file line number Diff line number Diff line change 3737import java .util .Optional ;
3838import java .util .stream .Collectors ;
3939
40- import cc .arduino .contributions .libraries .filters .LibraryWithNamePredicate ;
41-
4240public abstract class LibrariesIndex {
4341
4442 public abstract List <ContributedLibrary > getLibraries ();
4543
4644 public List <ContributedLibrary > find (final String name ) {
47- return getLibraries ().stream ().filter (new LibraryWithNamePredicate (name )).collect (Collectors .toList ());
45+ return getLibraries ().stream () //
46+ .filter (l -> name .equals (l .getName ())) //
47+ .collect (Collectors .toList ());
4848 }
4949
5050 public ContributedLibrary find (String name , String version ) {
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments