| @@ -2258,7 +2258,9 @@ public Resolution resolve(TypeDescription targetType, |
|
|
| 2258 |
2258 |
|
| 2259 |
2259 |
boolean shift = ((target.getModifiers() & Opcodes.ACC_STATIC) == 0) && !(target instanceof MethodDescription && ((MethodDescription) target).isConstructor()); |
| 2260 |
2260 |
for (int index = 0; index < methodDescription.getParameters().size(); index++) { |
| 2261 |
|
-Integer substitution = substitutions.getOrDefault(index + (shift ? 1 : 0), index + (shift ? 1 : 0)); |
|
2261 |
+int substitution = substitutions.containsKey(index + (shift ? 1 : 0)) |
|
2262 |
+ ? substitutions.get(index + (shift ? 1 : 0)) |
|
2263 |
+ : index + (shift ? 1 : 0); |
| 2262 |
2264 |
if (substitution >= parameters.size()) { |
| 2263 |
2265 |
throw new IllegalStateException(target + " does not support an index " + substitution); |
| 2264 |
2266 |
} |