mirror of
https://github.com/github/codeql.git
synced 2026-04-29 10:45:15 +02:00
Merge pull request #9181 from Marcono1234/marcono1234/FloatingPointLiteral-rename
Java: Rename `FloatingPointLiteral` to `FloatLiteral`
This commit is contained in:
@@ -15,9 +15,9 @@
|
||||
| literals.kt:17:30:17:33 | 15 | LongLiteral |
|
||||
| literals.kt:18:30:18:39 | 11 | LongLiteral |
|
||||
| literals.kt:19:30:19:38 | 1234567 | LongLiteral |
|
||||
| literals.kt:20:32:20:35 | 0.0 | FloatingPointLiteral |
|
||||
| literals.kt:21:32:21:37 | 123.4 | FloatingPointLiteral |
|
||||
| literals.kt:22:32:22:38 | -123.4 | FloatingPointLiteral |
|
||||
| literals.kt:20:32:20:35 | 0.0 | FloatLiteral |
|
||||
| literals.kt:21:32:21:37 | 123.4 | FloatLiteral |
|
||||
| literals.kt:22:32:22:38 | -123.4 | FloatLiteral |
|
||||
| literals.kt:23:34:23:36 | 0.0 | DoubleLiteral |
|
||||
| literals.kt:24:34:24:38 | 123.4 | DoubleLiteral |
|
||||
| literals.kt:25:34:25:39 | -123.4 | DoubleLiteral |
|
||||
|
||||
@@ -3,7 +3,7 @@ fields/FieldTest.java:
|
||||
# 3| 1: [Class] FieldTest
|
||||
# 4| 4: [FieldDeclaration] float ff, ...;
|
||||
# 4| -1: [TypeAccess] float
|
||||
# 4| 1: [FloatingPointLiteral] 2.3f
|
||||
# 4| 1: [FloatLiteral] 2.3f
|
||||
# 5| 5: [FieldDeclaration] Object obj, ...;
|
||||
# 5| -1: [TypeAccess] Object
|
||||
# 5| 0: [NullLiteral] null
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import semmle.code.java.Expr
|
||||
|
||||
from FloatingPointLiteral lit
|
||||
from FloatLiteral lit
|
||||
select lit, lit.getValue(), lit.getFloatValue()
|
||||
|
||||
@@ -4,6 +4,6 @@ from Literal l
|
||||
where
|
||||
l instanceof IntegerLiteral or
|
||||
l instanceof LongLiteral or
|
||||
l instanceof FloatingPointLiteral or
|
||||
l instanceof FloatLiteral or
|
||||
l instanceof DoubleLiteral
|
||||
select l, l.getValue(), l.getParent()
|
||||
|
||||
Reference in New Issue
Block a user