Skip to content

Commit a5ec1cc

Browse files
committed
Fix formatting
1 parent 7fc0ae4 commit a5ec1cc

File tree

1 file changed

+19
-11
lines changed
  • spring-session-data-mongodb/src/main/java/org/springframework/session/data/mongo

1 file changed

+19
-11
lines changed

spring-session-data-mongodb/src/main/java/org/springframework/session/data/mongo/MongoSession.java

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2014-2016 the original author or authors.
2+
* Copyright 2014-2022 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.
@@ -16,14 +16,19 @@
1616

1717
package org.springframework.session.data.mongo;
1818

19-
import org.springframework.lang.Nullable;
20-
import org.springframework.session.Session;
21-
2219
import java.time.Duration;
2320
import java.time.Instant;
24-
import java.util.*;
21+
import java.util.Date;
22+
import java.util.HashMap;
23+
import java.util.Map;
24+
import java.util.Objects;
25+
import java.util.Set;
26+
import java.util.UUID;
2527
import java.util.stream.Collectors;
2628

29+
import org.springframework.lang.Nullable;
30+
import org.springframework.session.Session;
31+
2732
/**
2833
* Session object providing additional information about the datetime of expiration.
2934
*
@@ -34,13 +39,15 @@
3439
public class MongoSession implements Session {
3540

3641
/**
37-
* Mongo doesn't support {@literal dot} in field names. We replace it with a unicode character from the Private Use Area.
42+
* Mongo doesn't support {@literal dot} in field names. We replace it with a unicode
43+
* character from the Private Use Area.
3844
* <p>
39-
* NOTE: This was originally stored in unicode format. Delomboking the code caused it to get converted to another encoding,
40-
* which isn't supported on all systems, so we migrated back to unicode. The same character is being represented ensuring
41-
* binary compatibility.
45+
* NOTE: This was originally stored in unicode format. Delomboking the code caused it
46+
* to get converted to another encoding, which isn't supported on all systems, so we
47+
* migrated back to unicode. The same character is being represented ensuring binary
48+
* compatibility.
4249
*
43-
* @see https://www.compart.com/en/unicode/U+F607
50+
* See https://www.compart.com/en/unicode/U+F607
4451
*/
4552
private static final char DOT_COVER_CHAR = '\uF607';
4653

@@ -106,7 +113,8 @@ public void setAttribute(String attributeName, Object attributeValue) {
106113

107114
if (attributeValue == null) {
108115
removeAttribute(coverDot(attributeName));
109-
} else {
116+
}
117+
else {
110118
this.attrs.put(coverDot(attributeName), attributeValue);
111119
}
112120
}

0 commit comments

Comments
 (0)