From 1aaca690e5aae7e3dd0f513845129fb68a154f2b Mon Sep 17 00:00:00 2001 From: Barbosa Date: Tue, 22 Dec 2020 16:35:10 -0300 Subject: [PATCH] style(#31): remove comments --- .../InterproceduralOverrideAssignment.java | 28 ++----------------- 1 file changed, 2 insertions(+), 26 deletions(-) diff --git a/src/main/java/br/unb/cic/analysis/ioa/InterproceduralOverrideAssignment.java b/src/main/java/br/unb/cic/analysis/ioa/InterproceduralOverrideAssignment.java index 6b319ed7..4aee1230 100644 --- a/src/main/java/br/unb/cic/analysis/ioa/InterproceduralOverrideAssignment.java +++ b/src/main/java/br/unb/cic/analysis/ioa/InterproceduralOverrideAssignment.java @@ -141,7 +141,7 @@ private boolean isInLeftStatementFLow(Statement.Type changeTag) { return changeTag.equals(Statement.Type.SOURCE); } - // TODO need to treat other cases + // TODO need to treat other cases (Arrays...) // TODO add in two lists (left and right). // TODO add depth to InstanceFieldRef and StaticFieldRef private void gen(Statement stmt) { @@ -214,6 +214,7 @@ private void checkConflicts(Unit unit, List potentialConfli } // TODO improve method name + // TODO need to treat other cases (Arrays...) private boolean compareItens(ValueBox valueBox, DataFlowAbstraction dataFlowAbstraction) { // TODO check why equivTo(Object o) doesn't work if (valueBox.getValue() instanceof InstanceFieldRef && dataFlowAbstraction.getFieldRef() != null) { @@ -275,29 +276,4 @@ private Statement createStatement(SootMethod sm, Unit u, Statement.Type changeTa .setUnit(u).setType(changeTag).setSourceCodeLineNumber(u.getJavaSourceStartLineNumber()) .build(); } - - /*private String getVariableNameInFromValueBox(ValueBox valueBox) { - if (valueBox.getValue() instanceof InstanceFieldRef) { - InstanceFieldRef instanceFieldRef = (InstanceFieldRef) valueBox.getValue(); - return instanceFieldRef.getBase().toString(); - } else if (valueBox.getValue() instanceof Local) { - Local local = (Local) valueBox.getValue(); - return local.getName(); - } else if (valueBox.getValue() instanceof StaticFieldRef) { - StaticFieldRef staticFieldRef = (StaticFieldRef) valueBox.getValue(); - return staticFieldRef.getField().getName(); - } else { - return ""; - } - }*/ - /* private String getVariableNameInDataFlowAbstraction(DataFlowAbstraction dataFlowAbstraction) { - if (dataFlowAbstraction.getLocal() != null) { - return dataFlowAbstraction.getLocal().getName(); - } else if (dataFlowAbstraction.getLocalStaticRef() != null) { - return dataFlowAbstraction.getLocalStaticRef().getField().getName(); - } else { - return dataFlowAbstraction.getFieldRef().getBase().toString(); - } - - }*/ }