Browse Source

Update to java 17

master
Andrea Cavalli 7 months ago
parent
commit
bc47ea1d81
  1. 2
      pom.xml
  2. 2
      src/main/java/it/cavallium/data/generator/SourcesGenerator.java

2
pom.xml

@ -73,7 +73,7 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<release>16</release>
<release>17</release>
<encoding>UTF-8</encoding>
</configuration>
</plugin>

2
src/main/java/it/cavallium/data/generator/SourcesGenerator.java

@ -392,7 +392,7 @@ public class SourcesGenerator {
.addStatement("int intermediateVersion = oldVersion")
.addStatement("$T intermediateData = oldData", Object.class)
.beginControlFlow("while (true)")
.beginControlFlow("switch (oldVersion)");
.beginControlFlow("switch (intermediateVersion)");
for (Entry<String, VersionConfiguration> entry : configuration.versions.entrySet()) {
String version = entry.getKey();
VersionConfiguration versionConfiguration = entry.getValue();

Loading…
Cancel
Save