Skip to content

Commit

Permalink
java 22
Browse files Browse the repository at this point in the history
  • Loading branch information
ibrahimatay committed Jun 18, 2024
1 parent 0c47066 commit 6c3f2a4
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"java.compile.nullAnalysis.mode": "automatic"
"java.compile.nullAnalysis.mode": "automatic",
"java.configuration.updateBuildConfiguration": "interactive"
}
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ This repository contains Java examples that are designed to track and document t

## Specifications & Practices

* [Java 22](java-22) (March, 2024)

* [Java 21](java-21) (September, 2023)
* [JEP 430](java-21/src/main/java/com/ibrahimatay/JEP430StringTemplates.java): String Templates
* [JEP 431](java-21/src/main/java/com/ibrahimatay/JEP431SequencedCollections.java): Sequenced Collections
Expand Down
32 changes: 32 additions & 0 deletions java-22/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.ibrahimatay</groupId>
<artifactId>Java-Features</artifactId>
<version>1.0-SNAPSHOT</version>
</parent>

<artifactId>java-22</artifactId>

<properties>
<maven.compiler.source>22</maven.compiler.source>
<maven.compiler.target>22</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<compilerArgs>--enable-preview</compilerArgs>
</configuration>
</plugin>
</plugins>
</build>

</project>
7 changes: 7 additions & 0 deletions java-22/src/main/java/com/ibrahimatay/Main.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.ibrahimatay;

public class Main {
public static void main(String[] args) {
System.out.println("Hello world!");
}
}
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
<module>java-16</module>
<module>java-21</module>
<module>java-17</module>
<module>java-22</module>
</modules>

<properties>
Expand Down

0 comments on commit 6c3f2a4

Please sign in to comment.