Skip to content

Commit 6bdfce5

Browse files
igor-suhorukovsnicoll
authored andcommitted
Polish
Closes gh-12422
1 parent ff1dd9e commit 6bdfce5

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/session/RedisSessionConfiguration.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2012-2017 the original author or authors.
2+
* Copyright 2012-2018 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -47,16 +47,13 @@ class RedisSessionConfiguration {
4747
public static class SpringBootRedisHttpSessionConfiguration
4848
extends RedisHttpSessionConfiguration {
4949

50-
private SessionProperties sessionProperties;
51-
5250
@Autowired
5351
public void customize(SessionProperties sessionProperties) {
54-
this.sessionProperties = sessionProperties;
55-
Integer timeout = this.sessionProperties.getTimeout();
52+
Integer timeout = sessionProperties.getTimeout();
5653
if (timeout != null) {
5754
setMaxInactiveIntervalInSeconds(timeout);
5855
}
59-
SessionProperties.Redis redis = this.sessionProperties.getRedis();
56+
SessionProperties.Redis redis = sessionProperties.getRedis();
6057
setRedisNamespace(redis.getNamespace());
6158
setRedisFlushMode(redis.getFlushMode());
6259
}

0 commit comments

Comments
 (0)