Replace int with var for consistency

master
Graham 5 years ago
parent 8613763520
commit 24ce226e5c
  1. 2
      deob/src/main/java/dev/openrs2/deob/transform/DummyTransformer.java
  2. 2
      deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.java

@ -301,7 +301,7 @@ public final class DummyTransformer extends Transformer {
var allUnknown = true;
@SuppressWarnings("unchecked")
var parameters = (ImmutableSet<Integer>[]) new ImmutableSet<?>[args];
for (int i = 0; i < args; i++) {
for (var i = 0; i < args; i++) {
var parameter = union(argValues.get(new ArgRef(method, i)));
if (parameter != null) {
allUnknown = false;

@ -72,7 +72,7 @@ public final class OriginalNameTransformer extends Transformer {
if (method.invisibleParameterAnnotations == null) {
method.invisibleParameterAnnotations = (List<AnnotationNode>[]) new List<?>[args];
}
for (int i = 0; i < method.invisibleParameterAnnotations.length; i++) {
for (var i = 0; i < method.invisibleParameterAnnotations.length; i++) {
var annotations = method.invisibleParameterAnnotations[i];
if (annotations == null) {
annotations = method.invisibleParameterAnnotations[i] = new ArrayList<>();

Loading…
Cancel
Save