Skip to content

Commit 6c3f2a4

Browse files
committed
java 22
1 parent 0c47066 commit 6c3f2a4

File tree

5 files changed

+44
-1
lines changed

5 files changed

+44
-1
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2-
"java.compile.nullAnalysis.mode": "automatic"
2+
"java.compile.nullAnalysis.mode": "automatic",
3+
"java.configuration.updateBuildConfiguration": "interactive"
34
}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ This repository contains Java examples that are designed to track and document t
77

88
## Specifications & Practices
99

10+
* [Java 22](java-22) (March, 2024)
11+
1012
* [Java 21](java-21) (September, 2023)
1113
* [JEP 430](java-21/src/main/java/com/ibrahimatay/JEP430StringTemplates.java): String Templates
1214
* [JEP 431](java-21/src/main/java/com/ibrahimatay/JEP431SequencedCollections.java): Sequenced Collections

java-22/pom.xml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
7+
<parent>
8+
<groupId>com.ibrahimatay</groupId>
9+
<artifactId>Java-Features</artifactId>
10+
<version>1.0-SNAPSHOT</version>
11+
</parent>
12+
13+
<artifactId>java-22</artifactId>
14+
15+
<properties>
16+
<maven.compiler.source>22</maven.compiler.source>
17+
<maven.compiler.target>22</maven.compiler.target>
18+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
19+
</properties>
20+
<build>
21+
<plugins>
22+
<plugin>
23+
<groupId>org.apache.maven.plugins</groupId>
24+
<artifactId>maven-compiler-plugin</artifactId>
25+
<configuration>
26+
<compilerArgs>--enable-preview</compilerArgs>
27+
</configuration>
28+
</plugin>
29+
</plugins>
30+
</build>
31+
32+
</project>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
package com.ibrahimatay;
2+
3+
public class Main {
4+
public static void main(String[] args) {
5+
System.out.println("Hello world!");
6+
}
7+
}

pom.xml

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
<module>java-16</module>
2020
<module>java-21</module>
2121
<module>java-17</module>
22+
<module>java-22</module>
2223
</modules>
2324

2425
<properties>

0 commit comments

Comments
 (0)