Package edu.umd.cs.findbugs

Examples of edu.umd.cs.findbugs.SelfCalls


        if (DEBUG) {
            System.out.println("******** Analyzing class " + javaClass.getClassName());
        }

        // Build self-call graph
        SelfCalls selfCalls = new SelfCalls(classContext) {
            @Override
            public boolean wantCallsFor(Method method) {
                return !method.isPublic();
            }
        };

        Set<Method> lockedMethodSet;
        // Set<Method> publicReachableMethods;
        Set<Method> allMethods = new HashSet<Method>(Arrays.asList(javaClass.getMethods()));

        try {
            selfCalls.execute();
            CallGraph callGraph = selfCalls.getCallGraph();
            if (DEBUG) {
                System.out.println("Call graph (not unlocked methods): " + callGraph.getNumVertices() + " nodes, "
                        + callGraph.getNumEdges() + " edges");
            }
            // Find call edges that are obviously locked
View Full Code Here

TOP

Related Classes of edu.umd.cs.findbugs.SelfCalls

Copyright © 2018 www.massapicom. 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.