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 {
144144 NumberType ( ) { exists ( TypeNumber number | hasDescendant ( number , this ) ) }
145145}
146146
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-
159147/** An immutable type. */
160148class ImmutableType extends Type {
161149 ImmutableType ( ) {
Original file line number Diff line number Diff line change @@ -1246,6 +1246,18 @@ class CharacterType extends Type {
12461246 }
12471247}
12481248
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+
12491261/** A numeric or character type, which may be either a primitive or a boxed type. */
12501262class NumericOrCharType extends Type {
12511263 NumericOrCharType ( ) {
You can’t perform that action at this time.
0 commit comments