edu.umd.cs.findbugs.detect

Class FindInconsistentSync2

public class FindInconsistentSync2 extends Object implements Detector

Find instance fields which are sometimes accessed (read or written) with the receiver lock held and sometimes without. These are candidates to be data races.

Author: David Hovemeyer Bill Pugh

Constructor Summary
FindInconsistentSync2(BugReporter bugReporter)
Method Summary
static booleanisGetterMethod(ClassContext classContext, Method method)
Determine whether or not the the given method is a getter method.
voidreport()
voidvisitClassContext(ClassContext classContext)

Constructor Detail

FindInconsistentSync2

public FindInconsistentSync2(BugReporter bugReporter)

Method Detail

isGetterMethod

public static boolean isGetterMethod(ClassContext classContext, Method method)
Determine whether or not the the given method is a getter method. I.e., if it just returns the value of an instance field.

Parameters: classContext the ClassContext for the class containing the method method the method

report

public void report()

visitClassContext

public void visitClassContext(ClassContext classContext)
FindBugs™ is licenced under the LGPL. Copyright © 2006 University of Maryland.