Examples of EqualsMethodFinder


Examples of com.googlecode.equalsnhashcode.finders.EqualsMethodFinder

public class EqualsInspection extends LocalInspectionTool {
    private static final String FIELD_NOT_INCLUDED_IN_EQUALS_METHOD = "field '%s' not included in equals method";

    @Nullable
    public ProblemDescriptor[] checkClass(@NotNull PsiClass psiClass, @NotNull InspectionManager inspectionManager, boolean onTheFly) {
        PsiMethod psiMethod = new EqualsMethodFinder(psiClass).find();
        List<ProblemDescriptor> equalsProblemDescriptors = new ProblemFinder(psiClass, inspectionManager, FIELD_NOT_INCLUDED_IN_EQUALS_METHOD).process(psiMethod);
        return equalsProblemDescriptors.toArray(new ProblemDescriptor[equalsProblemDescriptors.size()]);
    }
View Full Code Here

Examples of com.googlecode.equalsnhashcode.finders.EqualsMethodFinder

public class EqualsInspection extends BaseJavaLocalInspectionTool {
    private static final String FIELD_NOT_INCLUDED_IN_EQUALS_METHOD = "field '%s' not included in equals method";

    @Nullable
    public ProblemDescriptor[] checkClass(@NotNull PsiClass psiClass, @NotNull InspectionManager inspectionManager, boolean onTheFly) {
        PsiMethod psiMethod = new EqualsMethodFinder(psiClass).find();
        List<ProblemDescriptor> equalsProblemDescriptors = new ProblemFinder(psiClass, inspectionManager, FIELD_NOT_INCLUDED_IN_EQUALS_METHOD).process(psiMethod);
        return equalsProblemDescriptors.toArray(new ProblemDescriptor[equalsProblemDescriptors.size()]);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.