Skip to content

Commit

Permalink
Remove unnecessary code according to gradle warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
boholder committed Aug 19, 2023
1 parent 7efc88f commit 7a3d68e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ private void addElementNarrationsHead(NarrationMessageBuilder builder, CallbackI
callbackInfo.cancel();
}

ImmutableList<Selectable> immutableList = (ImmutableList)this.selectables.stream().filter(Selectable::isNarratable).collect(ImmutableList.toImmutableList());
Screen.SelectedElementNarrationData selectedElementNarrationData = this.findSelectedElementData(immutableList, this.selected);
ImmutableList<Selectable> immutableList = this.selectables.stream().filter(Selectable::isNarratable).collect(ImmutableList.toImmutableList());
Screen.SelectedElementNarrationData selectedElementNarrationData = findSelectedElementData(immutableList, this.selected);
if (selectedElementNarrationData != null) {
if (selectedElementNarrationData.selectType.isFocused()) {
this.selected = selectedElementNarrationData.selectable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class KeystrokeTest {

static class InitKeystrokeConditionSameAsExpected implements ArgumentsProvider {
@Override
public Stream<? extends Arguments> provideArguments(ExtensionContext extensionContext) throws Exception {
public Stream<? extends Arguments> provideArguments(ExtensionContext extensionContext) {
return Stream.of(
Arguments.of(new MockKeystroke(true), true),
Arguments.of(new MockKeystroke(false), false)
Expand Down

0 comments on commit 7a3d68e

Please sign in to comment.