Skip to content
This repository has been archived by the owner on Oct 13, 2023. It is now read-only.

Commit

Permalink
Fix Codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
tlinkowski committed Aug 21, 2019
1 parent 047669b commit efdc026
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,33 +99,39 @@ public <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) {
return Map.of(k1, v1, k2, v2, k3, v3, k4, v4);
}

@SuppressWarnings("PMD.ExcessiveParameterList")
@Override
public <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) {
return Map.of(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5);
}

@SuppressWarnings("PMD.ExcessiveParameterList")
@Override
public <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) {
return Map.of(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5, k6, v6);
}

@SuppressWarnings("PMD.ExcessiveParameterList")
@Override
public <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) {
return Map.of(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5, k6, v6, k7, v7);
}

@SuppressWarnings("PMD.ExcessiveParameterList")
@Override
public <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8,
V v8) {
return Map.of(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5, k6, v6, k7, v7, k8, v8);
}

@SuppressWarnings("PMD.ExcessiveParameterList")
@Override
public <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8,
V v8, K k9, V v9) {
return Map.of(k1, v1, k2, v2, k3, v3, k4, v4, k5, v5, k6, v6, k7, v7, k8, v8, k9, v9);
}

@SuppressWarnings("PMD.ExcessiveParameterList")
@Override
public <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8,
V v8, K k9, V v9, K k10, V v10) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@ public interface UnmodifiableMapFactory {
/**
* Equivalent of {@link Map#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object)}.
*/
@SuppressWarnings("PMD.ExcessiveParameterList")
@ReadOnly
<K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5);

/**
* Equivalent of {@link Map#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object,
* Object)}.
*/
@SuppressWarnings("PMD.ExcessiveParameterList")
@ReadOnly
<K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
K k6, V v6);
Expand All @@ -123,6 +125,7 @@ <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
* Equivalent of {@link Map#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object,
* Object, Object, Object)}.
*/
@SuppressWarnings("PMD.ExcessiveParameterList")
@ReadOnly
<K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
K k6, V v6, K k7, V v7);
Expand All @@ -131,6 +134,7 @@ <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
* Equivalent of {@link Map#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object,
* Object, Object, Object, Object, Object)}.
*/
@SuppressWarnings("PMD.ExcessiveParameterList")
@ReadOnly
<K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
K k6, V v6, K k7, V v7, K k8, V v8);
Expand All @@ -139,6 +143,7 @@ <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
* Equivalent of {@link Map#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object,
* Object, Object, Object, Object, Object, Object, Object)}.
*/
@SuppressWarnings("PMD.ExcessiveParameterList")
@ReadOnly
<K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9);
Expand All @@ -147,6 +152,7 @@ <K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
* Equivalent of {@link Map#of(Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object,
* Object, Object, Object, Object, Object, Object, Object, Object, Object)}.
*/
@SuppressWarnings("PMD.ExcessiveParameterList")
@ReadOnly
<K, V> Map<K, V> of(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5,
K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10);
Expand Down

0 comments on commit efdc026

Please sign in to comment.