full downgrade to java 14, fixes #17

This commit is contained in:
Bixilon 2021-05-31 13:55:51 +02:00
parent f172919cce
commit eba0cf5d48
No known key found for this signature in database
GPG Key ID: 5CAD791931B09AC4
2 changed files with 6 additions and 6 deletions

10
pom.xml
View File

@ -41,7 +41,7 @@
</execution>
</executions>
<configuration>
<jvmTarget>16</jvmTarget>
<jvmTarget>14</jvmTarget>
</configuration>
</plugin>
<plugin>
@ -73,8 +73,8 @@
</execution>
</executions>
<configuration>
<source>16</source>
<target>16</target>
<source>14</source>
<target>14</target>
</configuration>
</plugin>
<plugin>
@ -194,8 +194,8 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<exec.mainClass>de.bixilon.minosoft.Minosoft</exec.mainClass>
<maven.compiler.source>16</maven.compiler.source>
<maven.compiler.target>16</maven.compiler.target>
<maven.compiler.source>14</maven.compiler.source>
<maven.compiler.target>14</maven.compiler.target>
<javafx.version>17-ea+11</javafx.version>
<kotlin.version>1.5.10</kotlin.version>
<lwjgl.version>3.2.3</lwjgl.version>

View File

@ -303,7 +303,7 @@ public final class Util {
public static String mapToUrlQuery(Map<String, String> data) {
StringBuilder builder = new StringBuilder();
for (Map.Entry<String, String> entry : data.entrySet()) {
if (!builder.isEmpty()) {
if (builder.length() != 0) {
builder.append("&");
}
builder.append(URLEncoder.encode(entry.getKey(), StandardCharsets.UTF_8));