Skip to content

Commit 2d5a388

Browse files
committed
format
1 parent 6014e24 commit 2d5a388

File tree

1 file changed

+14
-8
lines changed
  • firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common

1 file changed

+14
-8
lines changed

firebase-crashlytics/src/main/java/com/google/firebase/crashlytics/internal/common/UserMetadata.java

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ public void setCustomKey(String key, String value) {
5555
{
5656
put(key, value);
5757
}
58-
}, attributes, MAX_ATTRIBUTE_SIZE);
58+
},
59+
attributes,
60+
MAX_ATTRIBUTE_SIZE);
5961
}
6062

6163
public void setCustomKeys(Map<String, String> keysAndValues) {
@@ -68,15 +70,18 @@ public Map<String, String> getInternalKeys() {
6870

6971
public void setInternalKey(String key, String value) {
7072
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);
7680
}
7781

7882
/** 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) {
8085
// We want all access to the keys_map hashmap to be locked so that there is no way to create
8186
// a race condition and add more than MAX_ATTRIBUTES keys.
8287

@@ -87,7 +92,8 @@ private synchronized void setSyncCustomKeys(Map<String, String> keysAndValues, M
8792
// Split into current and new keys
8893
for (Map.Entry<String, String> entry : keysAndValues.entrySet()) {
8994
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);
9197
if (keys_map.containsKey(key)) {
9298
currentKeys.put(key, value);
9399
} else {

0 commit comments

Comments
 (0)