Skip to content

Commit 2799244

Browse files
committed
NativeVariant: move 2 fields to the Cpu inner class (for readability)
1 parent dd2be1b commit 2799244

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

snaploader/src/main/java/electrostatic4j/snaploader/platform/util/NativeVariant.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,6 @@ public enum NativeVariant {
9191

9292
private final String property;
9393

94-
/**
95-
* named CPU features that were detected by the OSHI library
96-
*/
97-
private static Collection<String> presentFeatures;
98-
/**
99-
* serialize access to presentFeatures
100-
*/
101-
private static Object synchronizeFeatures = new Object();
102-
10394
NativeVariant(final String property) {
10495
this.property = property;
10596
}
@@ -151,6 +142,15 @@ public static boolean isAndroid() {
151142
* A namespace class exposing the CPU propositions.
152143
*/
153144
public static final class Cpu {
145+
/**
146+
* named CPU features that were detected by the OSHI library
147+
*/
148+
private static Collection<String> presentFeatures;
149+
/**
150+
* serialize access to presentFeatures
151+
*/
152+
private static Object synchronizeFeatures = new Object();
153+
154154
private Cpu() {
155155
}
156156

0 commit comments

Comments
 (0)