1 23 package org.hammurapi.inspectors; 24 25 import org.hammurapi.InspectorBase; 26 27 import com.pavelvlasov.jsel.expressions.MethodCall; 28 import com.pavelvlasov.review.SourceMarker; 29 30 31 37 public class NotifyRule extends InspectorBase { 38 39 42 private static final String NOTIFY = "notify"; 43 44 50 public void visit(MethodCall element) { 51 if (NOTIFY.compareTo(element.getName().toString())==0) { 52 if (element.getParameters().size()==0) { 53 context.reportViolation((SourceMarker) element); 54 } 55 } 56 } 57 58 } 59 | Popular Tags |