1 23 package org.hammurapi.inspectors; 24 25 import org.hammurapi.InspectorBase; 26 27 import com.pavelvlasov.jsel.VariableDefinition; 28 import com.pavelvlasov.jsel.primitives.PrimitiveType; 29 30 31 37 public class UseCollectionsInsteadOfArraysRule extends InspectorBase { 38 39 public void visit(VariableDefinition element) { 40 if (element.getTypeSpecification().getDimensions()>0 && !(element.getTypeSpecification().getType() instanceof PrimitiveType)) { 41 context.reportViolation(element); 42 } 43 } 44 } 45 | Popular Tags |