Skip to content

Commit 76cce1c

Browse files
committed
Updates requested in PR diffblue#49: Added few code comments.
1 parent 2d28478 commit 76cce1c

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

regression/december_demo_sprint/TRAINING/taint_traces_01/APP/taint_traces_01/Main.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public static void branches(int x) {
2222
x = x - 2;
2323
}
2424

25-
/*
25+
/*These methods are replaced be same methods are in Other class. Uncomment these, if you want to use them instead.
2626
public static void XX() {
2727
int xx = GG;
2828
GG = xx;
@@ -41,6 +41,8 @@ public static void test_stuff() {
4141
int a = 1;
4242
int b = 2;
4343

44+
/* next lines show how complex our instructions can be (they are not decomposed! :-( ) */
45+
4446
int c = 5 * (8 * a + 9 * b) * n.next.next.next.value * 6;
4547

4648
n.next.next.next.next.next.next = n.next.next.next.next.next.next.next.next;
@@ -65,7 +67,7 @@ public static int bar() {
6567
Main.bug(x1);
6668
return x1;
6769
}
68-
/*
70+
/*These methods are replaced be same methods are in Other class. Uncomment these, if you want to use them instead.
6971
public static int baz0(int a0) {
7072
return baz1(a0);
7173
}

regression/december_demo_sprint/TRAINING/taint_traces_05/APP/taint_traces_05/AssignmentAction.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ private HashMap uploadAll_parseZipFile(
2121
InputStream fileContentStream,
2222
HashMap submissionTable
2323
) {
24+
// If we do not load the class java.util.zip.ZipInputStream, then we
25+
// loose the class hierarchy => our rules stop working correctly. The
26+
// Introduced class XZipInputStream fixes the issue (i.e. important
27+
// is that it inherits from java.io.InputStream).
2428
XZipInputStream zis = new XZipInputStream(fileContentStream);
2529
String comment = getBodyTextFromZipHtml(zis,true);
2630
submissionTable.put("some_key",comment);

0 commit comments

Comments
 (0)