mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-29 02:21:44 +00:00
Disable frivolous PMD warnings and enable PMD in ntcore (#3419)
Some valid warnings like throwing NullPointerException or using a for loop instead of System.arraycopy() were fixed. Abstract classes marked with PMD.AbstractClassWithoutAbstractMethod were made concrete because they already had protected constructors. Fixes #1697.
This commit is contained in:
@@ -135,7 +135,7 @@ public class ShuffleboardTabTest {
|
||||
}
|
||||
|
||||
/** Stub for Java 9 {@code Map.of()}. */
|
||||
@SuppressWarnings({"unchecked", "PMD"})
|
||||
@SuppressWarnings("unchecked")
|
||||
private static <K, V> Map<K, V> mapOf(Object... entries) {
|
||||
Map<K, V> map = new HashMap<>();
|
||||
for (int i = 0; i < entries.length; i += 2) {
|
||||
|
||||
Reference in New Issue
Block a user