Changes between Version 12 and Version 13 of DevelopersGuide/StyleGuide
- Timestamp:
- 2010-09-18T22:50:51+02:00 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/StyleGuide
v12 v13 3 3 == How your code should look like == 4 4 5 * make sure the code is Java 1.5 compatible 6 * no {{{@Override}}} for methods for implemented interfaces 5 * make sure the code is Java 1.6 compatible 7 6 * make sure there is no trailing white space 8 7 * don't use multiple consecutive empty lines 8 * JOSM uses 4 characters indentation and no tab stops 9 9 * Document your code '''thoroughly'''. Many people will thank you :) 10 10 … … 51 51 * When using apostrophe, the following rules apply: 52 52 53 For simple strings without substitution you need not change anything: 54 55 {{{new JButton(tr("Don't press me!"))}}} 56 57 For {{{tr}}} with more than one parameter, the apostrophe is special. (Like backslash in C)[[BR]] 53 For all {{{tr}}} the apostrophe is special. (Like backslash in C)[[BR]] 58 54 It needs to be escaped by another apostrophe: 59 55
