summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Richard Uhler <ruhler@google.com> 2017-09-07 11:57:12 +0100
committer Richard Uhler <ruhler@google.com> 2017-09-13 12:48:59 +0100
commit8f0d9f106e57299cd702d1edad91944f83868f0b (patch)
treeee6defd89021a1c256eeed0996f2f509a35643ce
parent29c4bee7526accc90e61a34004ab0b0d5cc907de (diff)
Minor style cleanup of test-dump/Main.java.
To be more consistent with the style used elsewhere in ahat. Test: m ahat-test Change-Id: I6108dba57924b3a97b6eb8bc584aed9ab2ebb42b
-rw-r--r--tools/ahat/test-dump/Main.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/ahat/test-dump/Main.java b/tools/ahat/test-dump/Main.java
index cc44260873..333d28c214 100644
--- a/tools/ahat/test-dump/Main.java
+++ b/tools/ahat/test-dump/Main.java
@@ -115,10 +115,10 @@ public class Main {
}
DumpedStuff(boolean baseline) {
- int N = baseline ? 400000 : 1000000;
- bigArray = new byte[N];
- for (int i = 0; i < N; i++) {
- bigArray[i] = (byte)((i*i) & 0xFF);
+ int n = baseline ? 400000 : 1000000;
+ bigArray = new byte[n];
+ for (int i = 0; i < n; i++) {
+ bigArray[i] = (byte)((i * i) & 0xFF);
}
// 0x12345, 50000, and 0xABCDABCD are arbitrary values.
@@ -138,7 +138,7 @@ public class Main {
modifiedObject.modifiedRefField = baseline ? "A1" : "A2";
modifiedObject.unmodifiedRefField = "B";
modifiedStaticField = baseline ? "C1" : "C2";
- modifiedArray = baseline ? new int[]{0,1,2,3} : new int[]{3,1,2,0};
+ modifiedArray = baseline ? new int[]{0, 1, 2, 3} : new int[]{3, 1, 2, 0};
allocateObjectAtKnownSite1();