Community
Participate
Working Groups
Build Identifier: I20110127-2034 When generating the ToString-Method the prefix and suffix of each field is included in the output string. The prefix and suffix are defined in CodeStyle-PreferencePage, these are known character sequences that can be omit. Since ToString only uses non-static fields there is no benefit in seeing the prefix and suffix. May be this could be build in as a predefined template. Reproducible: Always Steps to Reproduce: 1. Create a Class with some fields using the definied prefix (here 'f'): class Data { private final SignalType fSignalType; private final long fTime; private final int fPosition; } 2. Call the Source -> Generate ToString Output using default template will be: @Override public String toString() { return "Data [fSignalType=" + fSignalType + ", fTime=" + fTime + ", fPosition=" + fPosition + "]"; } Wished output using would be: @Override public String toString() { return "Data [signalType=" + fSignalType + ", time=" + fTime + ", position=" + fPosition + "]"; }