ER-027
Avoid using "new" keyword when creating String objects to hold string literals.
Severity
1
Enabled
yes
Waivable
Violation
String s = new String(strIn.substring(1, UPPER_BOUND));
Fix
String s = strIn.substring(1, UPPER_BOUND);
Hammurapi 3 Copyright © 2004 Hammurapi Group. All Rights Reserved.