Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / tools / android / findbugs_plugin / test / java / src / org / chromium / tools / findbugs / plugin / SimpleSynchronizedThis.java
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
3 // found in the LICENSE file.
4
5 package org.chromium.tools.findbugs.plugin;
6
7 /**
8  * This class has synchronized(this) statement and is used to test
9  * SynchronizedThisDetector.
10  */
11 class SimpleSynchronizedThis {
12     private int mCounter = 0;
13
14     void synchronizedThis() {
15         synchronized (this) {
16             mCounter++;
17         }
18     }
19 }