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

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -