Skip to content

Commit

Permalink
Fix for Android. Do not use suppliers
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianromero committed Apr 20, 2018
1 parent a068858 commit 4a241bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/com/adr/helloiot/MainManagerClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ private void showLogin() {
try {
configprops.load(() -> new FileInputStream(configfile));
} catch (IOException ex) {
LOGGER.log(Level.WARNING, () -> String.format("Using defaults. Properties file not found: %s.", configfile));
LOGGER.log(Level.WARNING, String.format("Using defaults. Properties file not found: %s.", configfile));
}

clientmqtt.loadConfig(configprops);
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adr/helloiot/ManagerLocal.java
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ private void readMapClient() {
try (ObjectInputStream in = new ObjectInputStream(new FileInputStream(dbfile))) {
mapClient = (ConcurrentMap<String, byte[]>) in.readObject();
} catch (IOException | ClassNotFoundException ex) {
logger.log(Level.WARNING, () -> String.format("Creating map. Local map file not found: %s.", dbfile));
logger.log(Level.WARNING, String.format("Creating map. Local map file not found: %s.", dbfile));
}

if (mapClient == null) {
Expand Down

0 comments on commit 4a241bf

Please sign in to comment.