Changes between Version 31 and Version 33 of GoodCodeExamples
- Timestamp:
- 06/04/09 10:39:06 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
GoodCodeExamples
v31 v33 74 74 } 75 75 }}} 76 * Don't use @SuppressWarnings("all") and @SuppressWarnings("s ynthetic-access") at all, other like @SuppressWarnings("synthetic-access"), @SuppressWarnings("unchecked"), etc.. you can use, but rarely only when needed!76 * Don't use @SuppressWarnings("all") and @SuppressWarnings("static-access") at all, other like @SuppressWarnings("synthetic-access"), @SuppressWarnings("unchecked"), etc.. you can use, but rarely only when needed! 77 77 * We don't have special conventions for naming but don't use long name or stupid ones like "stuff". 78 78 * Don't leave commented code where you tried something to be reviewed, we will be not very happy. … … 107 107 * Put @After, @Before and @Test annotations. 108 108 * The first thing in a setUp method is calling the super.setUp() method, the last thing in a tearDown method is calling the super.tearDown() method. 109 * When caching an Exception in a test, use the logger.error(e.getMessage(), e); to see the message and than call fail(some_message_here)! 109 110 * Example for good test: 110 111 {{{