File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
java/ql/src/semmle/code/java/dataflow/internal Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ predicate clearsContent(Node n, Content c) {
209
209
* possible flow. A single type is used for all numeric types to account for
210
210
* numeric conversions, and otherwise the erasure is used.
211
211
*/
212
- DataFlowType getErasedRepr ( Type t ) {
212
+ private DataFlowType getErasedRepr ( Type t ) {
213
213
exists ( Type e | e = t .getErasure ( ) |
214
214
if e instanceof NumericOrCharType
215
215
then result .( BoxedType ) .getPrimitiveType ( ) .getName ( ) = "double"
@@ -222,6 +222,9 @@ DataFlowType getErasedRepr(Type t) {
222
222
t instanceof NullType and result instanceof TypeObject
223
223
}
224
224
225
+ pragma [ noinline]
226
+ DataFlowType getNodeType ( Node n ) { result = getErasedRepr ( n .getTypeBound ( ) ) }
227
+
225
228
/** Gets a string representation of a type returned by `getErasedRepr`. */
226
229
string ppReprType ( Type t ) {
227
230
if t .( BoxedType ) .getPrimitiveType ( ) .getName ( ) = "double"
You can’t perform that action at this time.
0 commit comments