Skip to content

Commit

Permalink
fixes fixable errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong committed Sep 10, 2023
1 parent bd9e6fa commit 2776f9b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion testing/infer/Demo.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ public class Demo {

void foo(String p) {}
void bar(@TopSecret String s) {
// :: fixable-error: (argument.type.incompatible)
// :: error: (argument.type.incompatible)
foo(s);
}
}
4 changes: 2 additions & 2 deletions testing/infer/Parameter.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ void method4(String p) {}

void parameter(String s1, @TopSecret String s2, @Confidential String s3, @Public String s4) {
method1(s1);
// :: fixable-error: (argument.type.incompatible)
// :: error: (argument.type.incompatible)
method2(s2);
// :: fixable-error: (argument.type.incompatible)
// :: error: (argument.type.incompatible)
method3(s3);
method4(s4);
}
Expand Down

0 comments on commit 2776f9b

Please sign in to comment.