Inspection for replacing 'new Integer(n)' with 'Integer.valueOf(n)'

Does there exist an inspection for replacing 'new Integer(n)' with
'Integer.valueOf(n)'?
If not, should there be one?

/Mikael


1 comment
Comment actions Permalink

Try Numeric issues->Number constructor call with primitive argument

Mikael Karlsson schrieb:

Does there exist an inspection for replacing 'new Integer(n)' with
'Integer.valueOf(n)'?
If not, should there be one?

/Mikael

0

Please sign in to leave a comment.