X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=Robust%2Fsrc%2FAnalysis%2FSSJava%2FFlowDownCheck.java;h=502bedad15f0a67988fe73a804ef5d1cb43cbd6d;hb=2e579e40f20a086e38dff23ac2b46fdd28f6f435;hp=32c6abda764b0a6c437c8c5fc6b55929ab5a10ed;hpb=03f449200cf7e78de07f884509619d0e37edfacf;p=IRC.git diff --git a/Robust/src/Analysis/SSJava/FlowDownCheck.java b/Robust/src/Analysis/SSJava/FlowDownCheck.java index 32c6abda..502bedad 100644 --- a/Robust/src/Analysis/SSJava/FlowDownCheck.java +++ b/Robust/src/Analysis/SSJava/FlowDownCheck.java @@ -332,7 +332,7 @@ public class FlowDownCheck { } // second, check return location annotation - if (!md.getReturnType().isVoid()) { + if (!md.getReturnType().isVoid() && !ssjava.getMethodContainingSSJavaLoop().equals(md)) { if (!hasReturnLocDeclaration) { // if developer does not define method lattice // search return location in the method default lattice @@ -351,7 +351,7 @@ public class FlowDownCheck { } - if (!md.getReturnType().isVoid()) { + if (!md.getReturnType().isVoid() && !ssjava.getMethodContainingSSJavaLoop().equals(md)) { MethodLattice methodLattice = ssjava.getMethodLattice(md); String thisLocId = methodLattice.getThisLoc(); if ((!md.isStatic()) && thisLocId == null) { @@ -546,10 +546,9 @@ public class FlowDownCheck { ReturnNode rn, CompositeLocation constraint) { ExpressionNode returnExp = rn.getReturnExpression(); - + CompositeLocation declaredReturnLoc = md2ReturnLoc.get(md); - CompositeLocation returnValueLoc; if (returnExp != null) { returnValueLoc =