Unnecessary temporary object in conversion to 'String'
Reports unnecessary creation of temporary objects when converting from a primitive type to String
.
Example:
String foo = new Integer(3).toString();
After the quick-fix is applied:
String foo = Integer.toString(3);
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Java, 233.SNAPSHOT |
Last modified: 13 July 2023