Skip to content

Commit ac3ae63

Browse files
committed
Format code
1 parent 0c07054 commit ac3ae63

4 files changed

Lines changed: 11 additions & 19 deletions

File tree

sentry/src/main/java/io/sentry/cache/IEnvelopeCache.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
/**
2-
* License: AGPL
3-
* Copyright: 1901
4-
*/
1+
/** License: AGPL Copyright: 1901 */
52
package io.sentry.cache;
63

74
import io.sentry.Hint;

sentry/src/main/java/io/sentry/util/CompactJsonWriter.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,7 @@
88
import java.io.IOException;
99
import java.io.Writer;
1010

11-
/**
12-
* A lightweight JSON writer that produces compact (no whitespace) output.
13-
*/
11+
/** A lightweight JSON writer that produces compact (no whitespace) output. */
1412
public final class CompactJsonWriter {
1513

1614
private final Writer out;

sentry/src/main/java/io/sentry/util/ConcurrentLruCache.java

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,19 @@
77
import java.util.LinkedHashMap;
88
import java.util.Map;
99

10-
/**
11-
* A simple thread-safe LRU cache backed by a synchronized LinkedHashMap.
12-
*/
10+
/** A simple thread-safe LRU cache backed by a synchronized LinkedHashMap. */
1311
public final class ConcurrentLruCache<K, V> {
1412

1513
private final Map<K, V> map;
1614

1715
public ConcurrentLruCache(int maxSize) {
18-
this.map = new LinkedHashMap<K, V>(maxSize, 0.75f, true) {
19-
@Override
20-
protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
21-
return size() > maxSize;
22-
}
23-
};
16+
this.map =
17+
new LinkedHashMap<K, V>(maxSize, 0.75f, true) {
18+
@Override
19+
protected boolean removeEldestEntry(Map.Entry<K, V> eldest) {
20+
return size() > maxSize;
21+
}
22+
};
2423
}
2524

2625
public synchronized V get(K key) {

sentry/src/main/java/io/sentry/util/TokenBucket.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
// https://github.com/google/guava/blob/master/guava/src/com/google/common/util/concurrent/RateLimiter.java
33
package io.sentry.util;
44

5-
/**
6-
* A simple token bucket rate limiter.
7-
*/
5+
/** A simple token bucket rate limiter. */
86
public final class TokenBucket {
97

108
private final long maxTokens;

0 commit comments

Comments
 (0)