Skip to content

Commit b5d986a

Browse files
committed
MO17 compilations errors solved
1 parent 10bd8a5 commit b5d986a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/uniandes/tsdl/mutapk/MutAPK.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public static void runMutAPK(String[] args) throws Exception {
8282
Helper.getInstance();
8383
Helper.setPackageName(appName);
8484
// Decode the APK
85-
//APKToolWrapper.openAPK(apkPath, extraPath);
85+
APKToolWrapper.openAPK(apkPath, extraPath);
8686

8787
//Read selected operators
8888
OperatorBundle operatorBundle = new OperatorBundle(operatorsDir);

src/uniandes/tsdl/mutapk/operators/data/android/InvalidURI.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ public boolean performMutation(MutationLocation location, BufferedWriter writer,
3232
for(int i=0; i < mLocation.getLine()-1; i++){
3333
newLines.add(lines.get(i));
3434
}
35-
String newVarName = varName.substring(0, 1)+(Integer.parseInt(varName.substring(1))+2);
35+
//String newVarName = varName.substring(0, 1)+(Integer.parseInt(varName.substring(1))+2);
3636
String newVarValue = StringGenerator.generateRandomString();
3737
// //Apply mutation
3838
newLines.add("");
39-
newLines.add(" const-string "+newVarName+", \""+newVarValue+"\"");
39+
newLines.add(" const-string "+varName+", \""+newVarValue+"\"");
4040
newLines.add("");
41-
newLines.add(lines.get(mLocation.getLine()-1).replaceAll(varName, newVarName));
41+
newLines.add(lines.get(mLocation.getLine()-1));
4242
newLines.add("");
4343

4444
for(int i=mLocation.getLine(); i < lines.size() ; i++){

0 commit comments

Comments
 (0)