From 89be4c63cd12667fcd8b274fbef36bd1ad803258 Mon Sep 17 00:00:00 2001 From: Naoghuman Date: Wed, 27 Feb 2019 05:30:36 +0100 Subject: [PATCH] #43 [cleanup] Refactore the usage from the method ResourceBundle.getBundle(...) in FXMLView. --- src/main/java/com/github/naoghuman/lib/fxml/core/FXMLView.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/github/naoghuman/lib/fxml/core/FXMLView.java b/src/main/java/com/github/naoghuman/lib/fxml/core/FXMLView.java index b8ba07a..563fc9f 100644 --- a/src/main/java/com/github/naoghuman/lib/fxml/core/FXMLView.java +++ b/src/main/java/com/github/naoghuman/lib/fxml/core/FXMLView.java @@ -23,7 +23,6 @@ import java.util.MissingResourceException; import java.util.Optional; import java.util.ResourceBundle; -import static java.util.ResourceBundle.getBundle; import javafx.fxml.FXMLLoader; import javafx.scene.Parent; @@ -135,7 +134,7 @@ private void initializeResourceBundle(final String presenter) { baseBundleName = baseBundleName.toLowerCase(); try { - resourceBundle = Optional.ofNullable(getBundle(baseBundleName)); + resourceBundle = Optional.ofNullable(ResourceBundle.getBundle(baseBundleName)); } catch (MissingResourceException ex) { LoggerFacade.getDefault().warn(this.getClass(), String.format(