Skip to content

Commit de6e513

Browse files
committed
formating
1 parent 497572e commit de6e513

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/test/java/redis/clients/jedis/util/RedisConditions.java

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ public int getVersion() {
4343
private final Map<String, Integer> modules;
4444
private final Map<String, CommandInfo> commands;
4545

46-
private RedisConditions(RedisVersion version, Map< String, CommandInfo> commands, Map<String, Integer> modules) {
46+
private RedisConditions(RedisVersion version, Map<String, CommandInfo> commands,
47+
Map<String, Integer> modules) {
4748
this.version = version;
4849
this.commands = commands;
4950
this.modules = modules;
@@ -52,15 +53,14 @@ private RedisConditions(RedisVersion version, Map< String, CommandInfo> commands
5253
public static RedisConditions of(UnifiedJedis jedis) {
5354
RedisVersion version = RedisVersionUtil.getRedisVersion(jedis);
5455

55-
CommandObject<Map<String, CommandInfo>> commandInfoCmd
56-
= new CommandObject<>(new CommandArguments(COMMAND), CommandInfo.COMMAND_INFO_RESPONSE);
56+
CommandObject<Map<String, CommandInfo>> commandInfoCmd = new CommandObject<>(
57+
new CommandArguments(COMMAND), CommandInfo.COMMAND_INFO_RESPONSE);
5758
Map<String, CommandInfo> commands = jedis.executeCommand(commandInfoCmd);
5859

59-
CommandObject<List<Module>> moduleListCmd
60-
= new CommandObject<>(new CommandArguments(MODULE).add(LIST), MODULE_LIST);
60+
CommandObject<List<Module>> moduleListCmd = new CommandObject<>(
61+
new CommandArguments(MODULE).add(LIST), MODULE_LIST);
6162

62-
Map<String, Integer> modules = jedis.executeCommand(moduleListCmd)
63-
.stream()
63+
Map<String, Integer> modules = jedis.executeCommand(moduleListCmd).stream()
6464
.collect(Collectors.toMap((m) -> m.getName().toUpperCase(), Module::getVersion));
6565

6666
return new RedisConditions(version, commands, modules);
@@ -101,6 +101,8 @@ public boolean moduleVersionIsGreaterThanOrEqual(String module, int version) {
101101
* @return {@code true} if the module version is greater than or equal to the specified version.
102102
*/
103103
public boolean moduleVersionIsGreaterThanOrEqual(ModuleVersion moduleVersion) {
104-
return moduleVersionIsGreaterThanOrEqual(moduleVersion.getModuleName(), moduleVersion.getVersion());
104+
return moduleVersionIsGreaterThanOrEqual(moduleVersion.getModuleName(),
105+
moduleVersion.getVersion());
105106
}
107+
106108
}

0 commit comments

Comments
 (0)