if (!validClass) return; validMethod = false; methodName = obj.getName(); if (methodName.equals("setUp") || methodName.equals("tearDown")) { if (methodName.equals("setUp")) setUpAnnotation = MethodAnnotation.fromVisitedMethod(this); else if (methodName.equals("tearDown")) tearDownAnnotation = MethodAnnotation.fromVisitedMethod(this); validMethod = true; state = SEEN_NOTHING; super.visit(obj); } else if (methodName.equals("suite") && !obj.isStatic()) bugReporter.reportBug(new BugInstance(this, "IJU_SUITE_NOT_STATIC", NORMAL_PRIORITY) .addClass(this) .addMethod(MethodAnnotation.fromVisitedMethod(this)));
if (getMethodName().equals("suite") && !obj.isStatic()) bugReporter.reportBug(new BugInstance(this, "IJU_SUITE_NOT_STATIC", NORMAL_PRIORITY).addClassAndMethod(this));
	public void visit(Method obj) {		if (!validClass)			return;		validMethod = false;		methodName = obj.getName();		if (methodName.equals("setUp") || methodName.equals("tearDown")) {			if (methodName.equals("setUp"))				setUpAnnotation = MethodAnnotation.fromVisitedMethod(this);			else if (methodName.equals("tearDown"))				tearDownAnnotation = MethodAnnotation.fromVisitedMethod(this);			validMethod = true;			state = SEEN_NOTHING;			super.visit(obj);		} else if (methodName.equals("suite") && !obj.isStatic())			bugReporter.reportBug(new BugInstance(this, "IJU_SUITE_NOT_STATIC", NORMAL_PRIORITY)			        .addClass(this)			        .addMethod(MethodAnnotation.fromVisitedMethod(this)));	}