Skip to content

Commit 61b5ead

Browse files
committed
refactor: simplify lambda parameter in CharactersCountView
Enable unused lambda parameter check
1 parent 0ce1503 commit 61b5ead

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

characters-count/src/main/java/dev/delivercraft/charscnt/gui/CharactersCountView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ private void createView() {
4040
private void bindViewModel() {
4141
this.inputTextField.textProperty().bindBidirectional(this.viewModel.inputProperty());
4242
this.outputLabel.textProperty().bind(this.viewModel.outputProperty());
43-
this.viewModel.inputProperty().addListener((obs, ov, nv) -> this.viewModel.countInputCharacters());
43+
this.viewModel.inputProperty().addListener((_, _, _) -> this.viewModel.countInputCharacters());
4444
}
4545
}

config/checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
<module name="UnusedImports">
142142
<property name="processJavadoc" value="false"/>
143143
</module>
144-
<!-- Enable on Java 25: <module name="UnusedLambdaParameterShouldBeUnnamed"/>-->
144+
<module name="UnusedLambdaParameterShouldBeUnnamed"/>
145145
<module name="UnusedLocalVariable"/>
146146
<module name="UpperEll"/>
147147
<module name="VariableDeclarationUsageDistance"/>

0 commit comments

Comments
 (0)