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 37
37
import java .util .Optional ;
38
38
import java .util .stream .Collectors ;
39
39
40
- import cc .arduino .contributions .libraries .filters .LibraryWithNamePredicate ;
41
-
42
40
public abstract class LibrariesIndex {
43
41
44
42
public abstract List <ContributedLibrary > getLibraries ();
45
43
46
44
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 ());
48
48
}
49
49
50
50
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