Fix checkstyle errors

This commit is contained in:
cugurlu
2019-03-17 17:27:29 +01:00
parent 0d0b78f6d0
commit 20b6e89781
4 changed files with 9 additions and 14 deletions

View File

@@ -26,16 +26,11 @@ public class Application extends javafx.application.Application {
* @param url which is being loaded.
* @return parent object.
*/
public static Parent load(java.net.URL url) {
public static Parent load(java.net.URL url) throws IOException {
FXMLLoader loader = new FXMLLoader();
loader.setControllerFactory(springContext::getBean);
loader.setLocation(url);
try {
return loader.load();
} catch (Exception e) {
e.printStackTrace();
}
return null;
return loader.load();
}
@Override

View File

@@ -5,7 +5,6 @@ package greenify.common;
// The motivation for its use is that communication between processes is usually done
// resorting to remote interfaces (e.g., web services), where each call is an expensive operation.
public class UserDto {
private Long id;
private String name;

View File

@@ -1,9 +1,10 @@
import greenify.common.ErrorResponse;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import greenify.common.ErrorResponse;
import org.junit.Test;
public class ErrorResponseTest {
@Test
public void setAndGetTest() {

View File

@@ -1,9 +1,9 @@
import greenify.common.UserDto;
import org.junit.Test;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
import greenify.common.UserDto;
import org.junit.Test;
public class UserDtoTest {
@Test
public void setAndGetTest() {