@@ -196,12 +196,25 @@ public String toString() {
196
196
public Platform family () {
197
197
return MAC ;
198
198
}
199
+
199
200
@ Override
200
201
public String toString () {
201
202
return "macOS 11.0" ;
202
203
}
203
204
},
204
205
206
+ MONTERREY ("monterrey" , "os x 12.0" , "macos 12.0" ) {
207
+ @ Override
208
+ public Platform family () {
209
+ return MAC ;
210
+ }
211
+
212
+ @ Override
213
+ public String toString () {
214
+ return "macOS 12.0" ;
215
+ }
216
+ },
217
+
205
218
/**
206
219
* Many platforms have UNIX traits, amongst them LINUX, Solaris and BSD.
207
220
*/
@@ -246,6 +259,7 @@ public boolean is(Platform compareWith) {
246
259
}
247
260
};
248
261
262
+ private static Platform current ;
249
263
private final String [] partOfOsName ;
250
264
private int minorVersion = 0 ;
251
265
private int majorVersion = 0 ;
@@ -254,12 +268,6 @@ public boolean is(Platform compareWith) {
254
268
this .partOfOsName = partOfOsName ;
255
269
}
256
270
257
- public String [] getPartOfOsName () {
258
- return Arrays .copyOf (partOfOsName , partOfOsName .length );
259
- }
260
-
261
- private static Platform current ;
262
-
263
271
/**
264
272
* Get current platform (not necessarily the same as operating system).
265
273
*
@@ -382,6 +390,10 @@ private static boolean isBetterMatch(String previous, String matcher) {
382
390
return previous == null || matcher .length () >= previous .length ();
383
391
}
384
392
393
+ public String [] getPartOfOsName () {
394
+ return Arrays .copyOf (partOfOsName , partOfOsName .length );
395
+ }
396
+
385
397
/**
386
398
* Heuristic for comparing two platforms. If platforms (which is not the same thing as operating
387
399
* systems) are found to be approximately similar in nature, this will return true. For instance
0 commit comments