Last active
December 21, 2015 06:59
-
-
Save dashorst/6268094 to your computer and use it in GitHub Desktop.
Test for code analysis by Eclipse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package testproject; | |
import static org.junit.Assert.assertNotNull; | |
import static org.junit.Assert.fail; | |
public class Test { | |
public void deadCodeAfterAssertNotNull() { | |
assertNotNull(null); | |
fail(""); | |
} | |
public void noDeadCodeAfterFail() { | |
fail(); | |
assertNotNull(null); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment