Java: Add content based example with multiple paths.

This commit is contained in:
Michael Nebel
2024-09-09 10:31:44 +02:00
parent 9149a17d79
commit 0fbeca14ad

View File

@@ -0,0 +1,13 @@
package p;
public class MultiPaths {
// summary=p;MultiPaths;true;cond;(String,String);;Argument[0];ReturnValue;taint;df-generated
// contentbased-summary=p;MultiPaths;true;cond;(String,String);;Argument[0];ReturnValue;value;df-generated
public String cond(String x, String other) {
if (x == other) {
return x.substring(0, 100);
}
return x;
}
}