Follow-up for record test build changes (#2207)
This commit is contained in:
parent
441406cc78
commit
5253ddbde0
@ -247,7 +247,6 @@
|
||||
<properties>
|
||||
<maven.compiler.testRelease>17</maven.compiler.testRelease>
|
||||
<excludeTestCompilation></excludeTestCompilation>
|
||||
<extraLintSuppressions>,-exports,-missing-explicit-ctor,-removal</extraLintSuppressions>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
@ -118,6 +118,9 @@ import java.io.Writer;
|
||||
//
|
||||
public abstract class TypeAdapter<T> {
|
||||
|
||||
public TypeAdapter() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Writes one JSON value (an array, object, string, number, boolean or null)
|
||||
* for {@code value}.
|
||||
|
@ -27,7 +27,7 @@ import org.junit.runner.RunWith;
|
||||
import org.junit.runners.JUnit4;
|
||||
|
||||
@RunWith(JUnit4.class)
|
||||
@Ignore
|
||||
@Ignore // Disabled until record support is added
|
||||
public final class Java17RecordTest {
|
||||
private final Gson gson = new Gson();
|
||||
|
||||
|
@ -37,7 +37,7 @@ public class ReflectionAccessTest {
|
||||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("removal") // java.lang.SecurityManager
|
||||
@SuppressWarnings("removal") // java.lang.SecurityManager deprecation in Java 17
|
||||
public void testRestrictiveSecurityManager() throws Exception {
|
||||
// Must use separate class loader, otherwise permission is not checked, see Class.getDeclaredFields()
|
||||
Class<?> clazz = loadClassWithDifferentClassLoader(ClassWithPrivateMembers.class);
|
||||
|
5
pom.xml
5
pom.xml
@ -22,7 +22,6 @@
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.release>7</maven.compiler.release>
|
||||
<extraLintSuppressions></extraLintSuppressions>
|
||||
</properties>
|
||||
|
||||
<scm>
|
||||
@ -77,7 +76,7 @@
|
||||
<compilerArgs>
|
||||
<!-- Enable all warnings, except for ones which cause issues when building with newer JDKs, see also
|
||||
https://docs.oracle.com/en/java/javase/11/tools/javac.html -->
|
||||
<compilerArg>-Xlint:all,-options${extraLintSuppressions}</compilerArg>
|
||||
<compilerArg>-Xlint:all,-options</compilerArg>
|
||||
</compilerArgs>
|
||||
<jdkToolchain>
|
||||
<version>[11,)</version>
|
||||
@ -92,6 +91,8 @@
|
||||
<jdkToolchain>
|
||||
<version>[11,)</version>
|
||||
</jdkToolchain>
|
||||
<!-- Specify newer JDK as target to allow linking to newer Java API, and to generate
|
||||
module overview in Javadoc for Gson's module descriptor -->
|
||||
<release>11</release>
|
||||
<!-- Exclude `missing` group because some tags have been omitted when they are redundant -->
|
||||
<doclint>all,-missing</doclint>
|
||||
|
Loading…
Reference in New Issue
Block a user