mirror of
https://github.com/github/codeql.git
synced 2026-04-30 11:15:13 +02:00
Java: Fix expected test output
This commit is contained in:
@@ -69,14 +69,14 @@ jdk/SystemGetPropertyCall.java:
|
||||
# 6| 4: [Method] a
|
||||
# 6| 3: [TypeAccess] void
|
||||
# 6| 5: [BlockStmt] { ... }
|
||||
# 7| 0: [ExprStmt] ...;
|
||||
# 7| 0: [ExprStmt] <Expr>;
|
||||
# 7| 0: [MethodAccess] getProperty(...)
|
||||
# 7| -1: [TypeAccess] System
|
||||
# 7| 0: [StringLiteral] "user.dir"
|
||||
# 10| 5: [Method] b
|
||||
# 10| 3: [TypeAccess] void
|
||||
# 10| 5: [BlockStmt] { ... }
|
||||
# 11| 0: [ExprStmt] ...;
|
||||
# 11| 0: [ExprStmt] <Expr>;
|
||||
# 11| 0: [MethodAccess] getProperty(...)
|
||||
# 11| -1: [TypeAccess] System
|
||||
# 11| 0: [StringLiteral] "user.dir"
|
||||
@@ -84,14 +84,14 @@ jdk/SystemGetPropertyCall.java:
|
||||
# 14| 6: [Method] c
|
||||
# 14| 3: [TypeAccess] void
|
||||
# 14| 5: [BlockStmt] { ... }
|
||||
# 15| 0: [ExprStmt] ...;
|
||||
# 15| 0: [ExprStmt] <Expr>;
|
||||
# 15| 0: [MethodAccess] getProperty(...)
|
||||
# 15| -1: [TypeAccess] System
|
||||
# 15| 0: [VarAccess] USER_DIR_PROPERTY
|
||||
# 18| 7: [Method] d
|
||||
# 18| 3: [TypeAccess] void
|
||||
# 18| 5: [BlockStmt] { ... }
|
||||
# 19| 0: [ExprStmt] ...;
|
||||
# 19| 0: [ExprStmt] <Expr>;
|
||||
# 19| 0: [MethodAccess] getProperty(...)
|
||||
# 19| -1: [TypeAccess] System
|
||||
# 19| 0: [StringLiteral] "random.property"
|
||||
|
||||
@@ -12,7 +12,7 @@ collections/Test.java:
|
||||
# 6| 0: [TypeAccess] String
|
||||
# 6| 1: [TypeAccess] Integer
|
||||
# 8| 4: [BlockStmt] { ... }
|
||||
# 9| 0: [ExprStmt] ...;
|
||||
# 9| 0: [ExprStmt] <Expr>;
|
||||
# 9| 0: [MethodAccess] put(...)
|
||||
# 9| -1: [VarAccess] m
|
||||
# 9| 0: [StringLiteral] "key"
|
||||
|
||||
@@ -80,7 +80,7 @@ constants/Initializers.java:
|
||||
# 8| -1: [TypeAccess] int
|
||||
# 10| 6: [Constructor] Initializers
|
||||
# 10| 5: [BlockStmt] { ... }
|
||||
# 12| 2: [ExprStmt] ...;
|
||||
# 12| 2: [ExprStmt] <Expr>;
|
||||
# 12| 0: [AssignExpr] ...=...
|
||||
# 12| 0: [VarAccess] IFIELD2
|
||||
# 12| 1: [IntegerLiteral] 22
|
||||
@@ -94,7 +94,7 @@ constants/Initializers.java:
|
||||
# 17| 1: [LocalVariableDeclStmt] var ...;
|
||||
# 17| 0: [TypeAccess] int
|
||||
# 17| 1: [LocalVariableDeclExpr] y
|
||||
# 18| 2: [ExprStmt] ...;
|
||||
# 18| 2: [ExprStmt] <Expr>;
|
||||
# 18| 0: [AssignExpr] ...=...
|
||||
# 18| 0: [VarAccess] y
|
||||
# 18| 1: [IntegerLiteral] 400
|
||||
@@ -112,20 +112,20 @@ constants/Initializers.java:
|
||||
# 26| -1: [TypeAccess] int
|
||||
# 26| 0: [IntegerLiteral] 4
|
||||
# 28| 13: [BlockStmt] { ... }
|
||||
# 30| 0: [ExprStmt] ...;
|
||||
# 30| 0: [ExprStmt] <Expr>;
|
||||
# 30| 0: [AssignExpr] ...=...
|
||||
# 30| 0: [VarAccess] fsf
|
||||
# 30| 1: [IntegerLiteral] 42
|
||||
# 31| 1: [ExprStmt] ...;
|
||||
# 31| 1: [ExprStmt] <Expr>;
|
||||
# 31| 0: [AssignExpr] ...=...
|
||||
# 31| 0: [VarAccess] sf
|
||||
# 31| 1: [IntegerLiteral] 42
|
||||
# 34| 14: [BlockStmt] { ... }
|
||||
# 36| 0: [ExprStmt] ...;
|
||||
# 36| 0: [ExprStmt] <Expr>;
|
||||
# 36| 0: [AssignExpr] ...=...
|
||||
# 36| 0: [VarAccess] ff
|
||||
# 36| 1: [IntegerLiteral] 42
|
||||
# 37| 1: [ExprStmt] ...;
|
||||
# 37| 1: [ExprStmt] <Expr>;
|
||||
# 37| 0: [AssignExpr] ...=...
|
||||
# 37| 0: [VarAccess] f
|
||||
# 37| 1: [IntegerLiteral] 42
|
||||
|
||||
@@ -17,7 +17,7 @@ constructors/A.java:
|
||||
# 10| 0: [ArrayTypeAccess] ...[]
|
||||
# 10| 0: [TypeAccess] String
|
||||
# 10| 5: [BlockStmt] { ... }
|
||||
# 11| 0: [ExprStmt] ...;
|
||||
# 11| 0: [ExprStmt] <Expr>;
|
||||
# 11| 0: [ClassInstanceExpr] new A(...)
|
||||
# 11| -3: [TypeAccess] A
|
||||
# 14| 6: [FieldDeclaration] String STATIC, ...;
|
||||
@@ -27,13 +27,13 @@ constructors/A.java:
|
||||
# 15| -1: [TypeAccess] String
|
||||
# 15| 0: [StringLiteral] "instance string"
|
||||
# 17| 8: [BlockStmt] { ... }
|
||||
# 18| 0: [ExprStmt] ...;
|
||||
# 18| 0: [ExprStmt] <Expr>;
|
||||
# 18| 0: [MethodAccess] println(...)
|
||||
# 18| -1: [VarAccess] System.out
|
||||
# 18| -1: [TypeAccess] System
|
||||
# 18| 0: [StringLiteral] "<obinit>"
|
||||
# 21| 9: [BlockStmt] { ... }
|
||||
# 22| 0: [ExprStmt] ...;
|
||||
# 22| 0: [ExprStmt] <Expr>;
|
||||
# 22| 0: [MethodAccess] println(...)
|
||||
# 22| -1: [VarAccess] System.out
|
||||
# 22| -1: [TypeAccess] System
|
||||
|
||||
@@ -43,6 +43,6 @@ generics/A.java:
|
||||
# 20| 0: [WildcardTypeAccess] ? ...
|
||||
# 20| 1: [TypeAccess] Double
|
||||
# 21| 7: [BlockStmt] { ... }
|
||||
# 21| 0: [ExprStmt] ...;
|
||||
# 21| 0: [ExprStmt] <Expr>;
|
||||
# 21| 0: [MethodAccess] asList(...)
|
||||
# 21| -1: [TypeAccess] Arrays
|
||||
|
||||
@@ -27,7 +27,7 @@ MultiCatch.java:
|
||||
# 15| 1: [TypeAccess] SQLException
|
||||
# 15| 1: [LocalVariableDeclExpr] e
|
||||
# 16| 1: [BlockStmt] { ... }
|
||||
# 17| 0: [ExprStmt] ...;
|
||||
# 17| 0: [ExprStmt] <Expr>;
|
||||
# 17| 0: [MethodAccess] printStackTrace(...)
|
||||
# 17| -1: [VarAccess] e
|
||||
# 18| 1: [ThrowStmt] throw ...
|
||||
|
||||
@@ -97,7 +97,7 @@ A.java:
|
||||
# 45| 0: [TryStmt] try ...
|
||||
# 45| -1: [BlockStmt] { ... }
|
||||
# 46| 0: [EnhancedForStmt] for (... : ...)
|
||||
#-----| 0: (Single var ...;)
|
||||
#-----| 0: (Single Local Variable Declaration)
|
||||
# 46| 0: [TypeAccess] Object
|
||||
# 46| 1: [LocalVariableDeclExpr] thing
|
||||
# 46| 1: [VarAccess] things
|
||||
@@ -110,7 +110,7 @@ A.java:
|
||||
# 48| 0: [ReturnStmt] return ...
|
||||
# 50| 1: [IfStmt] if (...)
|
||||
# 50| 0: [InstanceOfExpr] ...instanceof...
|
||||
#-----| 0: (Single var ...;)
|
||||
#-----| 0: (Single Local Variable Declaration)
|
||||
# 50| 0: [TypeAccess] String
|
||||
# 50| 1: [LocalVariableDeclExpr] s
|
||||
# 50| 0: [VarAccess] thing
|
||||
@@ -120,7 +120,7 @@ A.java:
|
||||
# 51| -3: [TypeAccess] RuntimeException
|
||||
# 51| 0: [VarAccess] s
|
||||
# 55| 0: [CatchClause] catch (...)
|
||||
#-----| 0: (Single var ...;)
|
||||
#-----| 0: (Single Local Variable Declaration)
|
||||
# 55| 0: [TypeAccess] RuntimeException
|
||||
# 55| 1: [LocalVariableDeclExpr] rte
|
||||
# 55| 1: [BlockStmt] { ... }
|
||||
|
||||
@@ -38,10 +38,10 @@ reflection/ReflectiveAccess.java:
|
||||
# 18| 0: [MethodAccess] forName(...)
|
||||
# 18| -1: [TypeAccess] Class<>
|
||||
# 18| 0: [StringLiteral] "reflection.ReflectiveAccess$TestClass"
|
||||
# 20| 1: [ExprStmt] ...;
|
||||
# 20| 1: [ExprStmt] <Expr>;
|
||||
# 20| 0: [MethodAccess] newInstance(...)
|
||||
# 20| -1: [VarAccess] testClass
|
||||
# 22| 2: [ExprStmt] ...;
|
||||
# 22| 2: [ExprStmt] <Expr>;
|
||||
# 22| 0: [MethodAccess] getAnnotation(...)
|
||||
# 22| 0: [TypeLiteral] TestClass.class
|
||||
# 22| 0: [TypeAccess] TestClass
|
||||
|
||||
@@ -65,7 +65,7 @@ typeaccesses/TA.java:
|
||||
# 11| 7: [Method] method5
|
||||
# 11| 3: [TypeAccess] void
|
||||
# 11| 5: [BlockStmt] { ... }
|
||||
# 11| 0: [ExprStmt] ...;
|
||||
# 11| 0: [ExprStmt] <Expr>;
|
||||
# 11| 0: [MethodAccess] toString(...)
|
||||
# 11| -1: [CastExpr] (...)...
|
||||
# 11| 0: [TypeAccess] ArrayList<TA>
|
||||
@@ -74,14 +74,14 @@ typeaccesses/TA.java:
|
||||
# 12| 8: [Method] method6
|
||||
# 12| 3: [TypeAccess] void
|
||||
# 12| 5: [BlockStmt] { ... }
|
||||
# 12| 0: [ExprStmt] ...;
|
||||
# 12| 0: [ExprStmt] <Expr>;
|
||||
# 12| 0: [ClassInstanceExpr] new ArrayList<TA>(...)
|
||||
# 12| -3: [TypeAccess] ArrayList<TA>
|
||||
# 12| 0: [TypeAccess] TA
|
||||
# 13| 9: [Method] method7
|
||||
# 13| 3: [TypeAccess] void
|
||||
# 13| 5: [BlockStmt] { ... }
|
||||
# 13| 0: [ExprStmt] ...;
|
||||
# 13| 0: [ExprStmt] <Expr>;
|
||||
# 13| 0: [MethodAccess] method3(...)
|
||||
# 13| -1: [TypeAccess] TA
|
||||
# 14| 10: [Class] Inner
|
||||
|
||||
@@ -48,7 +48,7 @@ varargs/Test.java:
|
||||
# 10| 0: [TypeAccess] String
|
||||
# 10| 5: [BlockStmt] { ... }
|
||||
# 11| 9: [BlockStmt] { ... }
|
||||
# 12| 0: [ExprStmt] ...;
|
||||
# 12| 0: [ExprStmt] <Expr>;
|
||||
# 12| 0: [MethodAccess] asList(...)
|
||||
# 12| -1: [TypeAccess] Arrays
|
||||
# 12| 0: [IntegerLiteral] 1
|
||||
|
||||
Reference in New Issue
Block a user