Skip to content

Commit 693b2c1

Browse files
committed
refact: use method reference instead of lambda expression
1 parent 9fad3fc commit 693b2c1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

org.eclipse.tm4e.ui/src/main/java/org/eclipse/tm4e/ui/internal/preferences/GrammarPreferencePage.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ protected void createColumns() {
123123
final var contentTypes = grammarManager.getContentTypesForScope(def.getScope());
124124
yield contentTypes == null
125125
? null
126-
: contentTypes.stream().map(ct -> ct.getName())
126+
: contentTypes.stream().map(IContentType::getName)
127127
.distinct()
128128
.sorted()
129129
.collect(Collectors.joining(", "));

0 commit comments

Comments
 (0)