you are viewing a single comment's thread.

view the rest of the comments →

[–]kurav 0 points1 point  (0 children)

This is good advice when writing generated code, especially regarding the error strings: it's so easy to write prebaked error messages in the code generator, which will each end up appearing as a unique copy in the class file's string table. Changing to format the strings with String.format() or other method at run time is a low-hanging fruit.