Skip to content

Commit

Permalink
Use Java 8 collections instead of Java 9.
Browse files Browse the repository at this point in the history
  • Loading branch information
hptruong93 committed Jun 12, 2018
1 parent 158b5ab commit 5ec8287
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/config/Config.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

public class Config implements ILoggable {

public static final String RELEASE_VERSION = "4.0.2";
public static final String RELEASE_VERSION = "4.0.3";
private static final String CONFIG_FILE_NAME = "config.json";
public static final String EXPORTED_CONFIG_FILE_NAME = "exported_" + CONFIG_FILE_NAME;
protected static final String CURRENT_CONFIG_VERSION = "2.3";
Expand Down
4 changes: 2 additions & 2 deletions src/core/keyChain/managers/RollingKeySeriesManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ public final Set<UserDefinedAction> unRegisterAction(UserDefinedAction action) {
protected final Set<UserDefinedAction> considerTaskExecution(KeyStroke key) {
if (key.getKey() == Config.HALT_TASK && getConfig().isEnabledHaltingKeyPressed()) {
clear();
return null;
return Collections.<UserDefinedAction>emptySet();
}

if (key.equals(currentRollingKeySeries.getLast())) {
return tasksToExecute();
}
return Set.of();
return Collections.<UserDefinedAction>emptySet();
}

protected abstract Set<UserDefinedAction> tasksToExecute();
Expand Down

0 comments on commit 5ec8287

Please sign in to comment.