Skip to content

Commit 38feaff

Browse files
brunoborgesCopilot
andcommitted
Convert support field to object with state and description
Change 'support' in all 85 JSON files from a plain string to an object with 'state' (available/preview/experimental) and 'description' fields. The JDK Support badge now dynamically shows Available, Preview, or Experimental with appropriate color styling. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b3921a3 commit 38feaff

File tree

90 files changed

+389
-91
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+389
-91
lines changed

.github/copilot-instructions.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,10 @@ Each `content/category/slug.json` file has this structure:
7171
{ "icon": "👁", "title": "Short title", "desc": "One sentence." },
7272
{ "icon": "🔒", "title": "Short title", "desc": "One sentence." }
7373
],
74-
"support": "Widely available since JDK 10 (March 2018)",
74+
"support": {
75+
"state": "available",
76+
"description": "Widely available since JDK 10 (March 2018)"
77+
},
7578
"prev": "category/slug-of-previous",
7679
"next": "category/slug-of-next",
7780
"related": [

content/collections/collectors-teeing.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "Merge into a record or value object directly."
3131
}
3232
],
33-
"support": "Widely available since JDK 12 (March 2019)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 12 (March 2019)"
36+
},
3437
"prev": "collections/sequenced-collections",
3538
"next": "collections/stream-toarray-typed",
3639
"related": [

content/collections/copying-collections-immutably.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "Changes to the original don't affect the copy."
3131
}
3232
],
33-
"support": "Widely available since JDK 10 (March 2018)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 10 (March 2018)"
36+
},
3437
"prev": "collections/immutable-set-creation",
3538
"next": "collections/map-entry-factory",
3639
"related": [

content/collections/immutable-list-creation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "Rejects null elements at creation time, failing fast."
3131
}
3232
],
33-
"support": "Widely available since JDK 9 (Sept 2017)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 9 (Sept 2017)"
36+
},
3437
"prev": "language/exhaustive-switch",
3538
"next": "collections/immutable-map-creation",
3639
"related": [

content/collections/immutable-map-creation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "Null entries are rejected immediately."
3131
}
3232
],
33-
"support": "Widely available since JDK 9 (Sept 2017)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 9 (Sept 2017)"
36+
},
3437
"prev": "collections/immutable-list-creation",
3538
"next": "collections/immutable-set-creation",
3639
"related": [

content/collections/immutable-set-creation.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "No add/remove possible after creation."
3131
}
3232
],
33-
"support": "Widely available since JDK 9 (Sept 2017)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 9 (Sept 2017)"
36+
},
3437
"prev": "collections/immutable-map-creation",
3538
"next": "collections/copying-collections-immutably",
3639
"related": [

content/collections/map-entry-factory.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "Works perfectly with Map.ofEntries() for large maps."
3131
}
3232
],
33-
"support": "Widely available since JDK 9 (Sept 2017)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 9 (Sept 2017)"
36+
},
3437
"prev": "collections/copying-collections-immutably",
3538
"next": "collections/sequenced-collections",
3639
"related": [

content/collections/sequenced-collections.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "Works the same on List, Deque, SortedSet."
3131
}
3232
],
33-
"support": "Widely available since JDK 21 LTS (Sept 2023)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 21 LTS (Sept 2023)"
36+
},
3437
"prev": "collections/map-entry-factory",
3538
"next": "collections/collectors-teeing",
3639
"related": [

content/collections/stream-toarray-typed.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "One expression replaces the manual loop."
3131
}
3232
],
33-
"support": "Widely available since JDK 8 (March 2014)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 8 (March 2014)"
36+
},
3437
"prev": "collections/collectors-teeing",
3538
"next": "collections/unmodifiable-collectors",
3639
"related": [

content/collections/unmodifiable-collectors.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@
3030
"desc": "Rejects null elements during collection."
3131
}
3232
],
33-
"support": "Widely available since JDK 10 (March 2018)",
33+
"support": {
34+
"state": "available",
35+
"description": "Widely available since JDK 10 (March 2018)"
36+
},
3437
"prev": "collections/stream-toarray-typed",
3538
"next": "strings/string-isblank",
3639
"related": [

0 commit comments

Comments
 (0)