@@ -52,6 +52,21 @@ void test() throws Exception {
52
52
sink (taintedRight2 .getMiddle ());
53
53
sink (taintedRight2 .getRight ()); // $hasValueFlow
54
54
55
+ // Check flow via Triple.of:
56
+ Triple <String , String , String > taintedLeft3 = Triple .of (taint (), "clean-middle" , "clean-right" );
57
+ Triple <String , String , String > taintedMiddle3 = Triple .of ("clean-left" , taint (), "clean-right" );
58
+ Triple <String , String , String > taintedRight3 = Triple .of ("clean-left" , "clean-middle" , taint ());
59
+
60
+ sink (taintedLeft3 .getLeft ()); // $hasValueFlow
61
+ sink (taintedLeft3 .getMiddle ());
62
+ sink (taintedLeft3 .getRight ());
63
+ sink (taintedMiddle3 .getLeft ());
64
+ sink (taintedMiddle3 .getMiddle ()); // $hasValueFlow
65
+ sink (taintedMiddle3 .getRight ());
66
+ sink (taintedRight3 .getLeft ());
67
+ sink (taintedRight3 .getMiddle ());
68
+ sink (taintedRight3 .getRight ()); // $hasValueFlow
69
+
55
70
MutableTriple <String , String , String > mutableTaintedLeft = MutableTriple .of (taint (), "clean-middle" , "clean-right" );
56
71
MutableTriple <String , String , String > mutableTaintedMiddle = MutableTriple .of ("clean-left" , taint (), "clean-right" );
57
72
MutableTriple <String , String , String > mutableTaintedRight = MutableTriple .of ("clean-left" , "clean-middle" , taint ());
0 commit comments