In general Terasology aims to stick to the standard Java code style, as described in the Java Code Conventions document and evidenced in the standard Java library.
At the moment Terasology targets Java 6, so you should avoid the new features in Java 7. This will be reviewed in the future. Where code can be improved with the use of Java 7, add a // JAVA7 comment above it. Edit: We're on Java 7 now!
Additionally:
At the moment Terasology targets Java 6, so you should avoid the new features in Java 7. This will be reviewed in the future. Where code can be improved with the use of Java 7, add a // JAVA7 comment above it. Edit: We're on Java 7 now!
Additionally:
- Use // TODO comments to note where something needs to be done
- Don't use Hungarian notation to denote types
- Where there are underscores before variables this is left over from before these conventions were created, feel free to remove them
- Use interfaces over concrete classes for variables (e.g. Map instead of HashMap). Feel free to use guava to construct the actual instance (e.g. Maps.newHashMap())
- IntelliJ is our primary development IDE, so for things like mass organising imports it is preferred it is done in IntelliJ. By default IntelliJ uses import some.package.*; if you are importing 5 or more classes from that package, suggest Eclipse users set things up the same way.