From 24ce226e5ca4fd5e5dbc7350627d0f1782530c95 Mon Sep 17 00:00:00 2001 From: Graham Date: Sun, 11 Aug 2019 14:03:47 +0100 Subject: [PATCH] Replace int with var for consistency --- .../main/java/dev/openrs2/deob/transform/DummyTransformer.java | 2 +- .../dev/openrs2/deob/transform/OriginalNameTransformer.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deob/src/main/java/dev/openrs2/deob/transform/DummyTransformer.java b/deob/src/main/java/dev/openrs2/deob/transform/DummyTransformer.java index 3f66143d98..ebb7d88066 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/DummyTransformer.java +++ b/deob/src/main/java/dev/openrs2/deob/transform/DummyTransformer.java @@ -301,7 +301,7 @@ public final class DummyTransformer extends Transformer { var allUnknown = true; @SuppressWarnings("unchecked") var parameters = (ImmutableSet[]) 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; diff --git a/deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.java b/deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.java index d6e3bf5d71..4ada5eb01a 100644 --- a/deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.java +++ b/deob/src/main/java/dev/openrs2/deob/transform/OriginalNameTransformer.java @@ -72,7 +72,7 @@ public final class OriginalNameTransformer extends Transformer { if (method.invisibleParameterAnnotations == null) { method.invisibleParameterAnnotations = (List[]) 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<>();