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

Side by Side Diff: tools/android/findbugs_plugin/test/java/src/org/chromium/tools/findbugs/plugin/SimpleSynchronizedThis.java

Issue 600983002: [Checkstyle] Fix misc style issues in Java files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix build Created 6 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.tools.findbugs.plugin; 5 package org.chromium.tools.findbugs.plugin;
6 6
7 /** 7 /**
8 * This class has synchronized(this) statement and is used to test 8 * This class has synchronized(this) statement and is used to test
9 * SynchronizedThisDetector. 9 * SynchronizedThisDetector.
10 */ 10 */
11 class SimpleSynchronizedThis { 11 class SimpleSynchronizedThis {
12 private int i = 0; 12 private int mCounter = 0;
13 13
14 void synchronizedThis() { 14 void synchronizedThis() {
15 synchronized(this) { 15 synchronized (this) {
16 i++; 16 mCounter++;
17 }
17 } 18 }
18 }
19 } 19 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698