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