java - Rule that checks if a class uses a method in a group of classes -
i'm trying write xpath-rule i'd warn using couple of methods given specific namespace. rule stated as:
you should able call create/update/delete in classes named suffix repository if call made class named suffix domain.
the part fail how connect field "private xxxrepository xxxrepository" call "xxxrepository.create()" in method later in code. checking the case naming convension followed seems insufficent.
example code:
public class example() private testrepository testrepository; public void calltocreate(){ testrepository.create(); } }
Comments
Post a Comment