Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2260)

Unified Diff: content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java

Issue 543553002: [Checkstyle] Enable additional name checks for Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java
diff --git a/content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java b/content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java
index 6f56449195e530d9c50cfec672bce130a4831a69..52658f3401c0094a955aab77e7d7bc7b798fcf66 100644
--- a/content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java
+++ b/content/public/android/javatests/src/org/chromium/content/common/CleanupReferenceTest.java
@@ -74,10 +74,10 @@ public class CleanupReferenceTest extends InstrumentationTestCase {
public void testCreateMany() throws Throwable {
assertEquals(0, sObjectCount.get());
- final int INSTANCE_COUNT = 20;
- ReferredObject[] instances = new ReferredObject[INSTANCE_COUNT];
+ final int instanceCount = 20;
+ ReferredObject[] instances = new ReferredObject[instanceCount];
- for (int i = 0; i < INSTANCE_COUNT; ++i) {
+ for (int i = 0; i < instanceCount; ++i) {
instances[i] = new ReferredObject();
assertEquals(i + 1, sObjectCount.get());
}

Powered by Google App Engine
This is Rietveld 408576698