Details
-
Bug
-
Resolution: Won't Do
-
Blocker
-
None
-
None
Description
The String.format() should only be used if formatting is needed.
Interface.java
@Message("Test message")
RuntimeException testMessage();
Interface_$bundle.java
@Override public final RuntimeException testMessage() { final RuntimeException result = new RuntimeException(String.format(testMessage$str())); final StackTraceElement[] st = result.getStackTrace(); result.setStackTrace(Arrays.copyOfRange(st, 1, st.length)); return result; }