Skip to content

Commit 0fbeca1

Browse files
committed
Java: Add content based example with multiple paths.
1 parent 9149a17 commit 0fbeca1

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
package p;
2+
3+
public class MultiPaths {
4+
5+
// summary=p;MultiPaths;true;cond;(String,String);;Argument[0];ReturnValue;taint;df-generated
6+
// contentbased-summary=p;MultiPaths;true;cond;(String,String);;Argument[0];ReturnValue;value;df-generated
7+
public String cond(String x, String other) {
8+
if (x == other) {
9+
return x.substring(0, 100);
10+
}
11+
return x;
12+
}
13+
}

0 commit comments

Comments
 (0)