You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: app/pages/future/innovation/index.md
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -7,11 +7,11 @@ subheader_select: innovation
7
7
8
8
## Amber
9
9
10
-
The goal of Project Amber is to explore and incubate smaller, productivity-oriented Java language features that have been accepted as candidate JEPs under the [OpenJDK JEP process](https://openjdk.java.net/jeps/1). This Project is sponsored by the [Compiler Group](https://openjdk.java.net/groups/compiler/).
10
+
The goal of Project Amber is to explore and incubate smaller, productivity-oriented Java language features that have been accepted as candidate JEPs under [JDK Enhancement-Proposal & Roadmap Process](jep:1). This Project is sponsored by the [Compiler Group](https://openjdk.org/groups/compiler/).
11
11
12
-
Most Project Amber features go through at least one round of Preview before becoming an official part of Java SE. See [JEP 12](https://openjdk.java.net/jeps/12) for an explanation of the Preview process, and [our tutorial](id:new_features.using_preview) on how to use preview features. For a given feature, there are separate JEPs for each round of preview and for final standardization.
12
+
Most Project Amber features go through at least one round of Preview before becoming an official part of Java SE. See [Preview Features](jep:12) for an explanation of the Preview process, and [our tutorial](id:new_features.using_preview) on how to use preview features. For a given feature, there are separate JEPs for each round of preview and for final standardization.
13
13
14
-
Learn more at Project Amber's [Wiki](https://openjdk.java.net/projects/amber/), as well as Inside.java's [Amber page](https://inside.java/tag/amber).
14
+
Learn more at Project Amber's [Wiki](https://openjdk.org/projects/amber/), as well as Inside.java's [Amber page](https://inside.java/tag/amber).
15
15
16
16
## Loom
17
17
@@ -23,7 +23,7 @@ Project Loom is to intended to explore, incubate and deliver Java VM features an
23
23
24
24
This OpenJDK project is sponsored by the HotSpot Group.
25
25
26
-
Learn more at Project Loom's [Wiki](https://wiki.openjdk.java.net/display/loom/Main), as well as Inside.java's [Loom page](https://inside.java/tag/loom).
26
+
Learn more at Project Loom's [Wiki](https://wiki.openjdk.org/display/loom/Main), as well as Inside.java's [Loom page](https://inside.java/tag/loom).
27
27
28
28
## Panama
29
29
@@ -43,7 +43,7 @@ To this end, Project Panama will include most or all of these components:
43
43
* tooling or wrapper interposition for safety
44
44
* exploratory work with difficult-to-integrate native libraries
45
45
46
-
Learn more at Project Panama's [Wiki](https://openjdk.java.net/projects/panama/), as well as Inside.java's [Panama page](https://inside.java/tag/panama).
46
+
Learn more at Project Panama's [Wiki](https://openjdk.org/projects/panama/), as well as Inside.java's [Panama page](https://inside.java/tag/panama).
47
47
48
48
49
49
## Valhalla
@@ -58,7 +58,7 @@ The three main goals are:
58
58
59
59
A number of people describe Valhalla recently as being "primarily about performance". While it is understandable why people might come to that conclusion -- many of the motivations for Valhalla are, in fact, rooted in performance considerations -- this characterization misses something very important. Yes, performance is an important part of the story -- but so are safety, abstraction, encapsulation, expressiveness, maintainability, and compatible library evolution.
60
60
61
-
Learn more at the Valhalla Project [Wiki](https://wiki.openjdk.java.net/display/valhalla/Main), as well as Inside.java's [Valhalla page](https://inside.java/tag/valhalla).
61
+
Learn more at the Valhalla Project [Wiki](https://wiki.openjdk.org/display/valhalla/Main), as well as Inside.java's [Valhalla page](https://inside.java/tag/valhalla).
62
62
63
63
64
64
## ZGC
@@ -81,5 +81,5 @@ At a glance, ZGC is:
81
81
At its core, ZGC is a concurrent garbage collector, meaning all heavy lifting work is done while Java threads continue to execute. This greatly limits the impact garbage collection will have on your application's response time.
82
82
83
83
84
-
Learn more at the ZGC [Wiki](https://wiki.openjdk.java.net/display/zgc/Main), as well as Inside.java's [GC page](https://inside.java/tag/gc).
84
+
Learn more at the ZGC [Wiki](https://wiki.openjdk.org/display/zgc/Main), as well as Inside.java's [GC page](https://inside.java/tag/gc).
Copy file name to clipboardExpand all lines: app/pages/learn/01_tutorial/03_getting-to-know-the-language/04_classes_objects/01_enums.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ toc:
17
17
- Precautions {precautions}
18
18
- Conclusion {conclusion}
19
19
description: "Working with enums."
20
-
last_update: 2023-09-29
20
+
last_update: 2023-10-02
21
21
author: ["DanielSchmid"]
22
22
---
23
23
<aid="intro"> </a>
@@ -71,11 +71,11 @@ switch (someDay) {
71
71
}
72
72
```
73
73
74
-
With [Switch Expressions](id:lang.classes-objects.switch-expression),
74
+
With [Switch Expressions](id:lang.basics.switch_expressions),
75
75
the compiler can check whether all values of the enum are handled.
76
76
If any possible value is missing in a switch expression, there will be a compiler error.
77
77
This is referred to as Exhaustiveness and can also be achieved with regular classes
78
-
through [Sealed Classes](https://openjdk.org/jeps/409).
78
+
through [Sealed Classes](jep:409).
79
79
80
80
```java
81
81
DayOfWeek someDay =DayOfWeek.FRIDAY;
@@ -210,6 +210,6 @@ and reading these configuration files in the program in cases like this.
210
210
<aid="conclusion"> </a>
211
211
## Conclusion
212
212
213
-
Enums provide a simple and safe way of representing a fixed set of constants while keeping most of the flexibilities of classes. They are a special type of class that can be used to write code that is elegant, readable, and maintainable, and work well with other newer modern features like [Switch Expressions](id:lang.classes-objects.switch-expression). Another special class is the Record class introduced in Java 19. Visit our [Records tutorial](id:lang.records) to learn more.
213
+
Enums provide a simple and safe way of representing a fixed set of constants while keeping most of the flexibilities of classes. They are a special type of class that can be used to write code that is elegant, readable, and maintainable, and work well with other newer modern features like [Switch Expressions](id:lang.basics.switch_expressions). Another special class is the Record class introduced in Java 19. Visit our [Records tutorial](id:lang.records) to learn more.
214
214
215
215
To learn more about enums, visit the [`java.lang.Enum`](javadoc:Enum) javadoc.
0 commit comments