Package edu.umd.cs.findbugs

Examples of edu.umd.cs.findbugs.CallGraphEdge


        boolean change;
        do {
            change = false;

            for (Iterator<CallGraphEdge> i = callGraph.edgeIterator(); i.hasNext();) {
                CallGraphEdge edge = i.next();
                CallSite callSite = edge.getCallSite();

                // Ignore obviously locked edges
                if (obviouslyLockedSites.contains(callSite)) {
                    continue;
                }

                // If the calling method is locked, ignore the edge
                if (lockedMethodSet.contains(callSite.getMethod())) {
                    continue;
                }

                // Calling method is unlocked, so the called method
                // is also unlocked.
                CallGraphNode target = edge.getTarget();
                if (lockedMethodSet.remove(target.getMethod())) {
                    change = true;
                }
            }
        } while (change);
View Full Code Here


        boolean change;
        do {
            change = false;

            for (Iterator<CallGraphEdge> i = callGraph.edgeIterator(); i.hasNext();) {
                CallGraphEdge edge = i.next();
                CallSite callSite = edge.getCallSite();

                if (obviouslyLockedSites.contains(callSite) || lockedMethodSet.contains(callSite.getMethod())) {
                    // Calling method is locked, so the called method
                    // is also locked.
                    CallGraphNode target = edge.getTarget();
                    if (lockedMethodSet.add(target.getMethod())) {
                        change = true;
                    }
                }
            }
View Full Code Here

TOP

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

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.