Skip to content

Commit 95a4b90

Browse files
authored
Restore deprecated Platform constants (#2762)
1 parent a9e8462 commit 95a4b90

1 file changed

Lines changed: 144 additions & 47 deletions

File tree

jme3-core/src/main/java/com/jme3/system/Platform.java

Lines changed: 144 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -34,62 +34,159 @@
3434
/**
3535
* Enumerate known operating system/architecture pairs.
3636
*/
37-
public enum Platform {
38-
39-
/**
40-
* Microsoft Windows 64-bit AMD/Intel
41-
*/
42-
Windows64(Os.Windows, true),
43-
44-
/**
45-
* Microsoft Windows 64-bit ARM
46-
*/
47-
Windows_ARM64(Os.Windows, true),
48-
49-
/**
50-
* Linux 64-bit Intel
51-
*/
52-
Linux64(Os.Linux, true),
53-
54-
/**
55-
* Linux 64-bit ARM
56-
*/
57-
Linux_ARM64(Os.Linux, true),
58-
59-
/**
60-
* Apple Mac OS X 64-bit Intel
61-
*/
62-
MacOSX64(Os.MacOS, true),
63-
64-
/**
65-
* Apple Mac OS X 64-bit ARM
66-
*/
67-
MacOSX_ARM64(Os.MacOS, true),
68-
69-
/**
70-
* Android ARM8
71-
*/
72-
Android_ARM8(Os.Android, true),
37+
public enum Platform {
38+
39+
/**
40+
* Microsoft Windows 32-bit AMD/Intel
41+
*
42+
* @deprecated 32-bit Windows is no longer supported.
43+
*/
44+
@Deprecated
45+
Windows32(Os.Windows),
46+
47+
/**
48+
* Microsoft Windows 64-bit AMD/Intel
49+
*/
50+
Windows64(Os.Windows, true),
51+
52+
/**
53+
* Microsoft Windows 32-bit ARM
54+
*
55+
* @deprecated 32-bit Windows is no longer supported.
56+
*/
57+
@Deprecated
58+
Windows_ARM32(Os.Windows),
59+
60+
/**
61+
* Microsoft Windows 64-bit ARM
62+
*/
63+
Windows_ARM64(Os.Windows, true),
64+
65+
/**
66+
* Linux 32-bit Intel
67+
*
68+
* @deprecated 32-bit Linux is no longer supported.
69+
*/
70+
@Deprecated
71+
Linux32(Os.Linux),
72+
73+
/**
74+
* Linux 64-bit Intel
75+
*/
76+
Linux64(Os.Linux, true),
77+
78+
/**
79+
* Linux 32-bit ARM
80+
*
81+
* @deprecated 32-bit Linux is no longer supported.
82+
*/
83+
@Deprecated
84+
Linux_ARM32(Os.Linux),
85+
86+
/**
87+
* Linux 64-bit ARM
88+
*/
89+
Linux_ARM64(Os.Linux, true),
90+
91+
/**
92+
* Apple Mac OS X 32-bit Intel
93+
*
94+
* @deprecated 32-bit macOS is no longer supported.
95+
*/
96+
@Deprecated
97+
MacOSX32(Os.MacOS),
98+
99+
/**
100+
* Apple Mac OS X 64-bit Intel
101+
*/
102+
MacOSX64(Os.MacOS, true),
73103

74104
/**
75-
* Android x86_64
76-
*/
77-
Android_X86_64(Os.Android, true),
78-
105+
* Apple Mac OS X 64-bit ARM
106+
*/
107+
MacOSX_ARM64(Os.MacOS, true),
108+
79109
/**
80-
* iOS on ARM
110+
* Apple Mac OS X 32 bit PowerPC
111+
*
112+
* @deprecated PowerPC macOS is no longer supported.
81113
*/
82-
iOS_ARM(Os.iOS, true),
114+
@Deprecated
115+
MacOSX_PPC32(Os.MacOS),
116+
117+
/**
118+
* Apple Mac OS X 64 bit PowerPC
119+
*
120+
* @deprecated PowerPC macOS is no longer supported.
121+
*/
122+
@Deprecated
123+
MacOSX_PPC64(Os.MacOS, true),
124+
125+
/**
126+
* Android ARM5
127+
*
128+
* @deprecated 32-bit Android is no longer supported.
129+
*/
130+
@Deprecated
131+
Android_ARM5(Os.Android),
132+
133+
/**
134+
* Android ARM6
135+
*
136+
* @deprecated 32-bit Android is no longer supported.
137+
*/
138+
@Deprecated
139+
Android_ARM6(Os.Android),
140+
141+
/**
142+
* Android ARM7
143+
*
144+
* @deprecated 32-bit Android is no longer supported.
145+
*/
146+
@Deprecated
147+
Android_ARM7(Os.Android),
148+
149+
/**
150+
* Android ARM8
151+
*/
152+
Android_ARM8(Os.Android, true),
153+
154+
/**
155+
* Android x86
156+
*
157+
* @deprecated 32-bit Android is no longer supported.
158+
*/
159+
@Deprecated
160+
Android_X86(Os.Android),
161+
162+
/**
163+
* Android x86_64
164+
*/
165+
Android_X86_64(Os.Android, true),
83166

84167
/**
85168
* iOS on x86_64 (simulator)
86169
*/
87170
iOS_X86(Os.iOS, true),
88-
/**
89-
* Generic web platform on unknown architecture
90-
*/
91-
Web(Os.Web, true) // assume always 64-bit, it shouldn't matter for web
92-
;
171+
172+
/**
173+
* iOS on ARM
174+
*/
175+
iOS_ARM(Os.iOS, true),
176+
177+
/**
178+
* Android running on unknown platform (could be x86 or mips for example).
179+
*
180+
* @deprecated Android platforms with unknown architectures are no longer supported.
181+
*/
182+
@Deprecated
183+
Android_Other(Os.Android),
184+
185+
/**
186+
* Generic web platform on unknown architecture
187+
*/
188+
Web(Os.Web, true) // assume always 64-bit, it shouldn't matter for web
189+
;
93190

94191

95192
/**

0 commit comments

Comments
 (0)