Skip to content

Commit bc5ae96

Browse files
committed
Reduce redundant newlines
1 parent 26295b1 commit bc5ae96

14 files changed

Lines changed: 30 additions & 15 deletions

File tree

src/main/java/net/openhft/chronicle/hash/impl/TierCountersArea.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
* are stateful - so need to keep an instance in thread local that seems to be overall more pain
2626
* than gain.
2727
*/
28-
public enum TierCountersArea {;
28+
public enum TierCountersArea {
29+
; // none
2930

3031
public static final long NEXT_TIER_INDEX_OFFSET = 0L;
3132
public static final long PREV_TIER_INDEX_OFFSET = NEXT_TIER_INDEX_OFFSET + 8L;

src/main/java/net/openhft/chronicle/hash/impl/stage/entry/ChecksumHashing.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616

1717
package net.openhft.chronicle.hash.impl.stage.entry;
1818

19-
public enum ChecksumHashing {;
19+
public enum ChecksumHashing {
20+
; // none
2021

2122
/**
2223
* A smart procedure copied from CityHash/FarmHash, see the full implementation in

src/main/java/net/openhft/chronicle/map/internal/AnalyticsHolder.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
import net.openhft.chronicle.core.analytics.AnalyticsFacade;
44
import net.openhft.chronicle.core.pom.PomProperties;
55

6-
public enum AnalyticsHolder {;
6+
public enum AnalyticsHolder {
7+
; // none
78

89
// Todo: VERSION is "unknown" for some reason
910
private static final String VERSION = PomProperties.version("net.openhft", "chronicle-map");

src/test/java/net/openhft/chronicle/map/fromdocs/acid/exodus/DirtyReadOffender.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public void run() {
4242
" @t=" + System.currentTimeMillis() +
4343
" DirtyReadOffender ACQUIRING offHeapLock.writeLock();"
4444
);
45-
while ((stamp = this.offHeapLock.writeLock()) == 0) {;
45+
while ((stamp = this.offHeapLock.writeLock()) == 0) {
46+
; // none
4647
}
4748
System.out.println(
4849
" @t=" + System.currentTimeMillis() +

src/test/java/net/openhft/chronicle/map/fromdocs/acid/exodus/DirtyReadVictim.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public void run() {
3636
" ,,@t=" + System.currentTimeMillis() +
3737
" DirtyReadVictim CALLING offHeapLock.tryOptimisticRead()"
3838
);
39-
while ((stamp = this.offHeapLock.tryOptimisticRead()) == 0) {;
39+
while ((stamp = this.offHeapLock.tryOptimisticRead()) == 0) {
40+
; // none
4041
}
4142
System.out.println(
4243
" ,,@t=" + System.currentTimeMillis() +

src/test/java/net/openhft/chronicle/map/fromdocs/acid/genesis/DirtyReadOffender.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ public void run() {
4242
" @t=" + System.currentTimeMillis() +
4343
" DirtyReadOffender ACQUIRING offHeapLock.writeLock();"
4444
);
45-
while ((stamp = this.offHeapLock.writeLock()) == 0) {;
45+
while ((stamp = this.offHeapLock.writeLock()) == 0) {
46+
; // none
4647
}
4748
System.out.println(
4849
" @t=" + System.currentTimeMillis() +

src/test/java/net/openhft/chronicle/map/fromdocs/acid/genesis/DirtyReadVictim.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public void run() {
3636
" ,,@t=" + System.currentTimeMillis() +
3737
" DirtyReadVictim CALLING offHeapLock.tryOptimisticRead()"
3838
);
39-
while ((stamp = this.offHeapLock.tryOptimisticRead()) == 0) {;
39+
while ((stamp = this.offHeapLock.tryOptimisticRead()) == 0) {
40+
; // none
4041
}
4142
System.out.println(
4243
" ,,@t=" + System.currentTimeMillis() +

src/test/java/net/openhft/chronicle/map/fromdocs/acid/revelations/ChronicleStampedLock.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,8 @@ public void unlock(long stamp) {
368368
unlockWrite(stamp);
369369
} else if (stamp > 0L) {
370370
unlockRead(stamp);
371-
} else {;// lock available
371+
} else {
372+
; // none// lock available
372373
}
373374
}
374375

src/test/java/net/openhft/chronicle/map/fromdocs/acid/revelations/DirtyReadIntolerant.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ public static void main(String args[]) {
3939
" DirtyReadIntolerant sleeping " + sleepMock + " seconds"
4040
);
4141
Thread.sleep(sleepMock * 1_000);
42-
while ((stamp = offHeapLock.readLock()) < 0) {;
42+
while ((stamp = offHeapLock.readLock()) < 0) {
43+
; // none
4344
}
4445
System.out.println(
4546
" ,,@t=" + System.currentTimeMillis() +

src/test/java/net/openhft/chronicle/map/fromdocs/acid/revelations/DirtyReadOffender.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public static void main(String args[]) {
5656
" @t=" + System.currentTimeMillis() +
5757
" DirtyReadOffender ACQUIRING offHeapLock.writeLock();"
5858
);
59-
while ((stamp = offHeapLock.writeLock()) == 0) {;
59+
while ((stamp = offHeapLock.writeLock()) == 0) {
60+
; // none
6061
}
6162
System.out.println(
6263
" @t=" + System.currentTimeMillis() +

0 commit comments

Comments
 (0)