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


0
Avatar
Permanently deleted user

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

请先登录再写评论。