Skip to content

Commit ab87978

Browse files
change method name and format
1 parent 3443537 commit ab87978

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/Stream.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,7 @@ protected CGNode getEnclosingMethodNode() throws IOException, CoreException, NoE
651651
* @throws CoreException
652652
* @throws NoEnclosingMethodNodeFoundException
653653
*/
654-
protected HashSet<CGNode> getEnclosingMethodNodes()
655-
throws IOException, CoreException, NoEnclosingMethodNodeFoundException {
654+
protected HashSet<CGNode> getCGNodesInGraph() throws IOException, CoreException {
656655
HashSet<CGNode> cgNodes = new HashSet<>();
657656

658657
Iterator<CGNode> cgNodeIterator = this.getAnalysisEngine().getCallGraph().iterator();

edu.cuny.hunter.streamrefactoring.core/src/edu/cuny/hunter/streamrefactoring/core/analysis/StreamStateMachine.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ public void start() throws IOException, CoreException, CallGraphBuilderCancelExc
280280
// the node of where the stream was declared: TODO: Can this be
281281
// somehow rewritten to get blocks corresponding to terminal
282282
// operations?
283-
for (CGNode cgNode : this.getStream().getEnclosingMethodNodes()) {
283+
for (CGNode cgNode : this.getStream().getCGNodesInGraph()) {
284284
for (Iterator<CallSiteReference> callSites = cgNode.iterateCallSites(); callSites.hasNext();) {
285285
CallSiteReference callSiteReference = callSites.next();
286286
MethodReference calledMethod = callSiteReference.getDeclaredTarget();

0 commit comments

Comments
 (0)