Skip to content

Commit a0bfac9

Browse files
improve(syncmap): enforce one statement per line and stricter visibility
1 parent be4c7ba commit a0bfac9

File tree

10 files changed

+815
-545
lines changed

10 files changed

+815
-545
lines changed

.checkstyle/checkstyle.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@
188188
</module>
189189

190190
<!-- https://checkstyle.org/config_coding.html#OneStatementPerLine -->
191-
<!-- <module name="OneStatementPerLine"/> -->
191+
<module name="OneStatementPerLine"/>
192192

193193
<!-- https://checkstyle.org/config_misc.html#OuterTypeFilename -->
194194
<module name="OuterTypeFilename"/>

collections-fastutil/src/jmh/java/space/vectrix/sync/collections/fastutil/Int2ObjectSyncMapBenchmark.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public void setup() {
7171
final boolean prepopulate = "prepopulate".equalsIgnoreCase(this.mode);
7272

7373
switch(this.implementation) {
74-
case "SyncMap" -> this.map = presized ? new Int2ObjectSyncMap<>(Hashing.FASTEST_MIX, this.size) : new Int2ObjectSyncMap<>(Hashing.FASTEST_MIX);
74+
case "SyncMap" -> this.map = presized ? new Int2ObjectSyncMap<>(Int2ObjectSyncMap.FASTEST_SPREAD, this.size) : new Int2ObjectSyncMap<>(Int2ObjectSyncMap.FASTEST_SPREAD);
7575
case "SynchronizedMap" -> this.map = presized
7676
? Int2ObjectMaps.synchronize(new Int2ObjectOpenHashMap<>(this.size))
7777
: Int2ObjectMaps.synchronize(new Int2ObjectOpenHashMap<>());

0 commit comments

Comments
 (0)