Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations.

This commit is contained in:
Ilkka Seppala
2015-12-25 23:49:28 +02:00
parent 9fbb085985
commit cec9a99410
167 changed files with 1242 additions and 969 deletions

View File

@ -17,9 +17,6 @@ public class App {
/**
* Program entry point
*
* @param args command line args
* @throws IOException
*/
public static void main(String[] args) throws IOException {

View File

@ -11,6 +11,9 @@ import java.io.IOException;
*/
public class SimpleFileWriter {
/**
* Constructor
*/
public SimpleFileWriter(String filename, FileWriterAction action) throws IOException {
FileWriter writer = new FileWriter(filename);
try {

View File

@ -65,11 +65,11 @@ public class SimpleFileWriterTest {
* Verify if an {@link IOException} during the write ripples through
*/
@Test(expected = IOException.class)
public void testIOException() throws Exception {
public void testIoException() throws Exception {
final File temporaryFile = this.testFolder.newFile();
new SimpleFileWriter(temporaryFile.getPath(), writer -> {
throw new IOException("");
});
throw new IOException("");
});
}
}