Skip to content

Commit 38897f2

Browse files
committed
Fixup tests from code review changes
1 parent 17b6e66 commit 38897f2

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

java/ql/test/library-tests/constants/PrintAst.expected

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,11 @@ constants/Values.java:
518518
# 90| 0: [VarAccess] var_field
519519
# 91| 68: [LocalVariableDeclStmt] var ...;
520520
# 91| 0: [TypeAccess] String
521-
# 91| 1: [LocalVariableDeclExpr] concatinatedString
521+
# 91| 1: [LocalVariableDeclExpr] concatenatedString
522522
# 91| 0: [StringLiteral] "a" + "b"
523523
# 92| 69: [LocalVariableDeclStmt] var ...;
524524
# 92| 0: [TypeAccess] String
525-
# 92| 1: [LocalVariableDeclExpr] concatinatedChar
525+
# 92| 1: [LocalVariableDeclExpr] concatenatedChar
526526
# 92| 0: [AddExpr] ... + ...
527527
# 92| 0: [StringLiteral] "ab"
528528
# 92| 1: [CharacterLiteral] 'c'
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import semmle.code.java.Variable
22

3-
from Variable v, Expr init, RefType enclosing, boolean constant
3+
from Variable v, CompileTimeConstantExpr init, RefType enclosing, boolean constant
44
where
55
v.getInitializer() = init and
66
init.getEnclosingCallable().getDeclaringType() = enclosing and
77
enclosing.hasQualifiedName("constants", "Values") and
8-
constant = init.(CompileTimeConstantExpr).getBooleanValue()
8+
constant = init.getBooleanValue()
99
select init, constant
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import semmle.code.java.Variable
22

3-
from Variable v, Expr init, RefType enclosing, int constant
3+
from Variable v, CompileTimeConstantExpr init, RefType enclosing, int constant
44
where
55
v.getInitializer() = init and
66
init.getEnclosingCallable().getDeclaringType() = enclosing and
77
enclosing.hasQualifiedName("constants", "Values") and
8-
constant = init.(CompileTimeConstantExpr).getIntValue()
8+
constant = init.getIntValue()
99
select init, constant
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
| constants/Values.java:19:29:19:31 | '*' | * |
22
| constants/Values.java:91:37:91:45 | "a" + "b" | ab |
3-
| constants/Values.java:92:29:92:38 | ... + ... | abc |
3+
| constants/Values.java:92:35:92:44 | ... + ... | abc |

0 commit comments

Comments
 (0)