@@ -55,7 +55,9 @@ public void setCustomKey(String key, String value) {
55
55
{
56
56
put (key , value );
57
57
}
58
- }, attributes , MAX_ATTRIBUTE_SIZE );
58
+ },
59
+ attributes ,
60
+ MAX_ATTRIBUTE_SIZE );
59
61
}
60
62
61
63
public void setCustomKeys (Map <String , String > keysAndValues ) {
@@ -68,15 +70,18 @@ public Map<String, String> getInternalKeys() {
68
70
69
71
public void setInternalKey (String key , String value ) {
70
72
setSyncCustomKeys (
71
- new HashMap <String , String >() {
72
- {
73
- put (key , value );
74
- }
75
- }, internalKeys , MAX_INTERNAL_KEY_SIZE );
73
+ new HashMap <String , String >() {
74
+ {
75
+ put (key , value );
76
+ }
77
+ },
78
+ internalKeys ,
79
+ MAX_INTERNAL_KEY_SIZE );
76
80
}
77
81
78
82
/** Gatekeeper function for access to attributes or internalKeys */
79
- private synchronized void setSyncCustomKeys (Map <String , String > keysAndValues , Map <String , String > keys_map , int maxAttributeSize ) {
83
+ private synchronized void setSyncCustomKeys (
84
+ Map <String , String > keysAndValues , Map <String , String > keys_map , int maxAttributeSize ) {
80
85
// We want all access to the keys_map hashmap to be locked so that there is no way to create
81
86
// a race condition and add more than MAX_ATTRIBUTES keys.
82
87
@@ -87,7 +92,8 @@ private synchronized void setSyncCustomKeys(Map<String, String> keysAndValues, M
87
92
// Split into current and new keys
88
93
for (Map .Entry <String , String > entry : keysAndValues .entrySet ()) {
89
94
String key = sanitizeKey (entry .getKey (), maxAttributeSize );
90
- String value = (entry .getValue () == null ) ? "" : sanitizeAttribute (entry .getValue (), maxAttributeSize );
95
+ String value =
96
+ (entry .getValue () == null ) ? "" : sanitizeAttribute (entry .getValue (), maxAttributeSize );
91
97
if (keys_map .containsKey (key )) {
92
98
currentKeys .put (key , value );
93
99
} else {
0 commit comments