Joe Soltzberg

62%
Flag icon
When documenting an enum type, be sure to document the constants as well as the type and any public methods. Note that you can put an entire doc comment on one line if it’s short: Click here to view code image /**  * An instrument section of a symphony orchestra.  */ public enum OrchestraSection {     /** Woodwinds, such as flute, clarinet, and oboe. */     WOODWIND,     /** Brass instruments, such as french horn and trumpet. */     BRASS,     /** Percussion instruments, such as timpani and cymbals. */     PERCUSSION,     /** Stringed instruments, such as violin and cello. */     STRING;
Joe Soltzberg
Note totally sure if I agree with this... What about self-documenting code?
Effective Java
Rate this book
Clear rating
Open Preview