Replace int with var for consistency

bzip2
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; var allUnknown = true;
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
var parameters = (ImmutableSet<Integer>[]) new ImmutableSet<?>[args]; 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))); var parameter = union(argValues.get(new ArgRef(method, i)));
if (parameter != null) { if (parameter != null) {
allUnknown = false; allUnknown = false;

@ -72,7 +72,7 @@ public final class OriginalNameTransformer extends Transformer {
if (method.invisibleParameterAnnotations == null) { if (method.invisibleParameterAnnotations == null) {
method.invisibleParameterAnnotations = (List<AnnotationNode>[]) new List<?>[args]; 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]; var annotations = method.invisibleParameterAnnotations[i];
if (annotations == null) { if (annotations == null) {
annotations = method.invisibleParameterAnnotations[i] = new ArrayList<>(); annotations = method.invisibleParameterAnnotations[i] = new ArrayList<>();

Loading…
Cancel
Save