Changes between Version 37 and Version 38 of DevelopersGuide/StyleGuide
- Timestamp:
- 2024-04-19T18:26:58+02:00 (15 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/StyleGuide
v37 v38 6 6 == How your code should look like == 7 7 8 * make sure the code is Java 8compatible8 * make sure the code is Java 11 compatible 9 9 * **Document** your code using inline comments and javadoc. Many people will thank you :) 10 10 * Try to avoid public fields 11 11 * JOSM has a lot of helper methods in the `Utils`, `GuiUtils`, `Geometry` ... classes. Use them if you need 12 12 * Check parameters. You can use `Objects.requireNonNull`. 13 * Don't write for performance - write for readability. Use `Stream`s, `Function`s and other Java 8 features if they make the code more readable. 13 * Don't write for performance - write for readability. Use `Stream`s, `Function`s and other Java 8+ features if they make the code more readable. 14 14 15 15 === Threading / Locking ===