File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed
java/ql/lib/semmle/code/java Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -144,18 +144,6 @@ class NumberType extends RefType {
144
144
NumberType ( ) { exists ( TypeNumber number | hasDescendant ( number , this ) ) }
145
145
}
146
146
147
- /** A numeric type, including both primitive and boxed types. */
148
- class NumericType extends Type {
149
- NumericType ( ) {
150
- exists ( string name |
151
- name = this .( PrimitiveType ) .getName ( ) or
152
- name = this .( BoxedType ) .getPrimitiveType ( ) .getName ( )
153
- |
154
- name .regexpMatch ( "byte|short|int|long|double|float" )
155
- )
156
- }
157
- }
158
-
159
147
/** An immutable type. */
160
148
class ImmutableType extends Type {
161
149
ImmutableType ( ) {
Original file line number Diff line number Diff line change @@ -1246,6 +1246,18 @@ class CharacterType extends Type {
1246
1246
}
1247
1247
}
1248
1248
1249
+ /** A numeric type, including both primitive and boxed types. */
1250
+ class NumericType extends Type {
1251
+ NumericType ( ) {
1252
+ exists ( string name |
1253
+ name = this .( PrimitiveType ) .getName ( ) or
1254
+ name = this .( BoxedType ) .getPrimitiveType ( ) .getName ( )
1255
+ |
1256
+ name .regexpMatch ( "byte|short|int|long|double|float" )
1257
+ )
1258
+ }
1259
+ }
1260
+
1249
1261
/** A numeric or character type, which may be either a primitive or a boxed type. */
1250
1262
class NumericOrCharType extends Type {
1251
1263
NumericOrCharType ( ) {
You can’t perform that action at this time.
0 commit comments