reformat project according to .editorconfig

Signed-off-by: Glease <[email protected]>
This commit is contained in:
Glease committed 2022-07-08 17:14:18 +08:00
1 parent 33d377cea7
commit 8de7026a00
36 files changed
+2507 -2467

No files matched your search

@@ -43,10 +43,10 @@ public class XSTR extends Random {
private static final double DOUBLE_UNIT = 0x1.0p-53; // 1.0 / (1L << 53)
private static final float FLOAT_UNIT = 0x1.0p-24f; // 1.0f / (1 << 24)
private static final AtomicLong seedUniquifier = new AtomicLong(8682522807148012L);
public static final XSTR XSTR_INSTANCE=new XSTR(){
public static final XSTR XSTR_INSTANCE = new XSTR() {
@Override
public synchronized void setSeed(long seed) {
if(!Thread.currentThread().getStackTrace()[2].getClassName().equals(Random.class.getName())) {
if (!Thread.currentThread().getStackTrace()[2].getClassName().equals(Random.class.getName())) {
throw new NoSuchMethodError("This is meant to be shared!, leave seed state alone!");
}
}
@@ -275,4 +275,4 @@ public class XSTR extends Random {
}
}
}
}
}