OLD | NEW |
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 is used to test SynchronizedMethodDetector | 8 * This class is used to test SynchronizedMethodDetector |
9 */ | 9 */ |
10 class SimpleSynchronizedStaticMethod { | 10 class SimpleSynchronizedStaticMethod { |
11 private static int i = 0; | 11 private static int sCounter = 0; |
12 synchronized static void synchronizedStaticMethod() { | 12 |
13 i++; | 13 static synchronized void synchronizedStaticMethod() { |
14 } | 14 sCounter++; |
| 15 } |
15 } | 16 } |
OLD | NEW |