Skip to content
This repository has been archived by the owner on Jun 11, 2023. It is now read-only.

Commit

Permalink
#43 [cleanup] Refactore the usage from the method ResourceBundle.getB…
Browse files Browse the repository at this point in the history
…undle(...) in FXMLView.
  • Loading branch information
Naoghuman committed Feb 27, 2019
1 parent 0661904 commit 89be4c6
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 89be4c6

Please sign in to comment.