Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit ca8ff70

Browse files
feffijknack
authored andcommitted
fixed minor code issues (jooby-project#1161)
(cherry picked from commit 00b084a)
1 parent 9b115bc commit ca8ff70

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

modules/jooby-hazelcast/src/main/java/org/jooby/hazelcast/Hcast.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,7 @@ public Config config() {
312312
private Properties toProperties(final Config config) {
313313
Properties properties = new Properties();
314314

315-
config.withoutPath("session").entrySet().forEach(prop -> {
316-
properties.setProperty("hazelcast." + prop.getKey(), prop.getValue().unwrapped().toString());
317-
});
315+
config.withoutPath("session").entrySet().forEach(prop -> properties.setProperty("hazelcast." + prop.getKey(), prop.getValue().unwrapped().toString()));
318316

319317
return properties;
320318
}

modules/jooby-hazelcast/src/main/java/org/jooby/hazelcast/HcastSessionStore.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@
269269
*/
270270
public class HcastSessionStore implements Session.Store {
271271

272-
private IMap<String, Map<String, String>> sessions;
272+
private final IMap<String, Map<String, String>> sessions;
273273

274-
private int timeout;
274+
private final int timeout;
275275

276276
/**
277277
* Creates a new {@link HcastSessionStore}.

0 commit comments

Comments
 (0)