Skip to content

Commit e34b9dd

Browse files
feat(jdk14): Add linking class for JEP 362 – Deprecate the Solaris and SPARC Ports changes (#344)
Co-authored-by: Alois Sečkár <ellrohir@seznam.cz>
1 parent 0926086 commit e34b9dd

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

src/main/java/org/javademos/init/Java14DemoLoader.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
import org.javademos.java14.jep358.NullPointerDemo;
1010
import org.javademos.java14.jep359.RecordsPreviewDemo;
1111
import org.javademos.java14.jep361.SwitchExpressionsDemo;
12+
import org.javademos.java14.jep362.SolarisSparcRemovalDemo;
1213
import org.javademos.java14.jep364.ZGarbageCollectorOnMacOS;
1314
import org.javademos.java14.jep365.ZGarbageCollectorOnWindows;
1415
import org.javademos.java14.jep368.TextBlockSecondPreviewDemo;
@@ -25,6 +26,7 @@ public void loadDemos(Map<Integer, IDemo> demos) {
2526
demos.put(358, new NullPointerDemo());
2627
demos.put(359, new RecordsPreviewDemo());
2728
demos.put(361, new SwitchExpressionsDemo());
29+
demos.put(362, new SolarisSparcRemovalDemo());
2830
demos.put(364, new ZGarbageCollectorOnMacOS());
2931
demos.put(365, new ZGarbageCollectorOnWindows());
3032
demos.put(368, new TextBlockSecondPreviewDemo());
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
package org.javademos.java14.jep362;
2+
3+
import org.javademos.commons.IDemo;
4+
5+
/// Demo for JDK 14 feature <strong>JEP 362 - Deprecate the Solaris and SPARC Ports</strong>.
6+
///
7+
///
8+
/// Relates to:
9+
/// - JDK 15: [JEP 381 - Remove the Solaris and SPARC Ports](https://openjdk.org/jeps/381)
10+
///
11+
/// Deprecate the Solaris/SPARC, Solaris/x64, and Linux/SPARC ports, with the intent to remove them in a future release.
12+
/// @see org.javademos.java15.jep381.SolarisSparcRemovalDemo
13+
///
14+
/// @author SanjanaMahapatra
15+
16+
public class SolarisSparcRemovalDemo implements IDemo {
17+
@Override
18+
public void demo() {
19+
info(362);
20+
}
21+
}

src/main/resources/JDK14Info.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,14 @@
3131
"link": false,
3232
"code": true
3333
},
34+
{
35+
"jep": 362,
36+
"jdk": 14,
37+
"name": "JEP 362 - Deprecate the Solaris and SPARC Ports",
38+
"dscr": "Deprecate the Solaris/SPARC, Solaris/x64, and Linux/SPARC ports, with the intent to remove them in a future release.",
39+
"link": true,
40+
"code": false
41+
},
3442
{
3543
"jep": 364,
3644
"jdk": 14,

0 commit comments

Comments
 (0)