Skip to content

Commit

Permalink
Remove NOPMDs that can be removed without changes
Browse files Browse the repository at this point in the history
  • Loading branch information
crammond committed Apr 30, 2024
1 parent ae77a38 commit 0483f81
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public void onScriptCallbackEvent(ScriptCallbackEvent event)
@Subscribe
public void onOverheadTextChanged(OverheadTextChanged event)
{
if (!(event.getActor() instanceof Player) || event.getActor().getName() == null || !canFilterPlayer(event.getActor().getName())) // NOPMD: SimplifyConditional
if (!(event.getActor() instanceof Player) || event.getActor().getName() == null || !canFilterPlayer(event.getActor().getName()))
{
return;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1879,7 +1879,7 @@ private void swap(ArrayListMultimap<String, Integer> optionIndexes, MenuEntry[]
sortedInsert(list2, index1);
}

private static <T extends Comparable<? super T>> void sortedInsert(List<T> list, T value) // NOPMD: UnusedPrivateMethod: false positive
private static <T extends Comparable<? super T>> void sortedInsert(List<T> list, T value)
{
int idx = Collections.binarySearch(list, value);
list.add(idx < 0 ? -idx - 1 : idx, value);
Expand Down

0 comments on commit 0483f81

Please sign in to comment.