diff --git a/modules/org.restlet.ext.jaas/src/main/java/org/restlet/ext/jaas/ChallengeCallbackHandler.java b/modules/org.restlet.ext.jaas/src/main/java/org/restlet/ext/jaas/ChallengeCallbackHandler.java index 3d3114e030..d45e8baccb 100644 --- a/modules/org.restlet.ext.jaas/src/main/java/org/restlet/ext/jaas/ChallengeCallbackHandler.java +++ b/modules/org.restlet.ext.jaas/src/main/java/org/restlet/ext/jaas/ChallengeCallbackHandler.java @@ -33,7 +33,6 @@ import org.restlet.Request; import org.restlet.Response; -import org.restlet.engine.Edition; /** * JAAS callback handler that automatically provides the identifier and secret diff --git a/modules/org.restlet.ext.jackson/src/main/java/org/restlet/ext/jackson/JacksonConverter.java b/modules/org.restlet.ext.jackson/src/main/java/org/restlet/ext/jackson/JacksonConverter.java index 54f9ce919f..0b0eff5024 100644 --- a/modules/org.restlet.ext.jackson/src/main/java/org/restlet/ext/jackson/JacksonConverter.java +++ b/modules/org.restlet.ext.jackson/src/main/java/org/restlet/ext/jackson/JacksonConverter.java @@ -29,7 +29,6 @@ import org.restlet.data.MediaType; import org.restlet.data.Preference; -import org.restlet.engine.Edition; import org.restlet.engine.converter.ConverterHelper; import org.restlet.engine.resource.VariantInfo; import org.restlet.representation.Representation; diff --git a/modules/org.restlet.ext.json/src/main/java/org/restlet/ext/json/JsonRepresentation.java b/modules/org.restlet.ext.json/src/main/java/org/restlet/ext/json/JsonRepresentation.java index d9fee636c9..d13d8c06ed 100644 --- a/modules/org.restlet.ext.json/src/main/java/org/restlet/ext/json/JsonRepresentation.java +++ b/modules/org.restlet.ext.json/src/main/java/org/restlet/ext/json/JsonRepresentation.java @@ -35,7 +35,6 @@ import org.json.JSONTokener; import org.restlet.data.CharacterSet; import org.restlet.data.MediaType; -import org.restlet.engine.Edition; import org.restlet.representation.Representation; import org.restlet.representation.StringRepresentation; import org.restlet.representation.WriterRepresentation; diff --git a/modules/org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/DomRepresentation.java b/modules/org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/DomRepresentation.java index e986a0c968..135eddd6b0 100644 --- a/modules/org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/DomRepresentation.java +++ b/modules/org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/DomRepresentation.java @@ -30,7 +30,6 @@ import org.restlet.data.CharacterSet; import org.restlet.data.MediaType; -import org.restlet.engine.Edition; import org.restlet.representation.Representation; import org.w3c.dom.Document; import org.w3c.dom.DocumentType; diff --git a/modules/org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/XmlRepresentation.java b/modules/org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/XmlRepresentation.java index 0e79104add..ca6513f390 100644 --- a/modules/org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/XmlRepresentation.java +++ b/modules/org.restlet.ext.xml/src/main/java/org/restlet/ext/xml/XmlRepresentation.java @@ -42,7 +42,6 @@ import org.restlet.Context; import org.restlet.data.MediaType; -import org.restlet.engine.Edition; import org.restlet.representation.Representation; import org.restlet.representation.WriterRepresentation; import org.w3c.dom.Document; diff --git a/modules/org.restlet.test/src/main/java/org/restlet/test/HeaderTestCase.java b/modules/org.restlet.test/src/main/java/org/restlet/test/HeaderTestCase.java index 72e542b802..7d620a0e48 100644 --- a/modules/org.restlet.test/src/main/java/org/restlet/test/HeaderTestCase.java +++ b/modules/org.restlet.test/src/main/java/org/restlet/test/HeaderTestCase.java @@ -30,7 +30,6 @@ import java.util.Collections; import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.restlet.Client; diff --git a/modules/org.restlet.test/src/main/java/org/restlet/test/TemplateFilterTestCase.java b/modules/org.restlet.test/src/main/java/org/restlet/test/TemplateFilterTestCase.java index f00a892982..123a0d2213 100644 --- a/modules/org.restlet.test/src/main/java/org/restlet/test/TemplateFilterTestCase.java +++ b/modules/org.restlet.test/src/main/java/org/restlet/test/TemplateFilterTestCase.java @@ -29,7 +29,6 @@ import java.io.File; import java.io.FileWriter; -import java.io.IOException; import org.junit.jupiter.api.Test; import org.restlet.Application; diff --git a/modules/org.restlet.test/src/main/java/org/restlet/test/connector/ZipClientTestCase.java b/modules/org.restlet.test/src/main/java/org/restlet/test/connector/ZipClientTestCase.java index 3a584e11e0..71b5912995 100644 --- a/modules/org.restlet.test/src/main/java/org/restlet/test/connector/ZipClientTestCase.java +++ b/modules/org.restlet.test/src/main/java/org/restlet/test/connector/ZipClientTestCase.java @@ -31,7 +31,6 @@ import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; -import java.nio.file.Paths; import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; @@ -39,7 +38,6 @@ import org.restlet.data.LocalReference; import org.restlet.data.Reference; import org.restlet.data.Status; -import org.restlet.engine.io.IoUtils; import org.restlet.representation.EmptyRepresentation; import org.restlet.representation.StringRepresentation; import org.restlet.resource.ClientResource; diff --git a/modules/org.restlet.test/src/main/java/org/restlet/test/engine/HtmlEncodingTestCase.java b/modules/org.restlet.test/src/main/java/org/restlet/test/engine/HtmlEncodingTestCase.java index f85bf1fde6..4bb7c5d6b4 100644 --- a/modules/org.restlet.test/src/main/java/org/restlet/test/engine/HtmlEncodingTestCase.java +++ b/modules/org.restlet.test/src/main/java/org/restlet/test/engine/HtmlEncodingTestCase.java @@ -25,7 +25,6 @@ package org.restlet.test.engine; import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.params.provider.Arguments.arguments; import org.junit.jupiter.params.ParameterizedTest; diff --git a/modules/org.restlet.test/src/main/java/org/restlet/test/ext/xml/RestletXmlTestCase.java b/modules/org.restlet.test/src/main/java/org/restlet/test/ext/xml/RestletXmlTestCase.java index fe3b173d96..8ec8bf415e 100644 --- a/modules/org.restlet.test/src/main/java/org/restlet/test/ext/xml/RestletXmlTestCase.java +++ b/modules/org.restlet.test/src/main/java/org/restlet/test/ext/xml/RestletXmlTestCase.java @@ -45,7 +45,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.restlet.data.MediaType; -import org.restlet.engine.Edition; import org.restlet.engine.util.DefaultSaxHandler; import org.restlet.ext.xml.DomRepresentation; import org.restlet.representation.InputRepresentation; diff --git a/modules/org.restlet.test/src/main/java/org/restlet/test/resource/AnnotatedResource15TestCase.java b/modules/org.restlet.test/src/main/java/org/restlet/test/resource/AnnotatedResource15TestCase.java index f53a9e293a..125ef052ec 100644 --- a/modules/org.restlet.test/src/main/java/org/restlet/test/resource/AnnotatedResource15TestCase.java +++ b/modules/org.restlet.test/src/main/java/org/restlet/test/resource/AnnotatedResource15TestCase.java @@ -31,8 +31,6 @@ import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.restlet.data.MediaType; -import org.restlet.engine.Engine; -import org.restlet.ext.jackson.JacksonConverter; import org.restlet.ext.jackson.JacksonRepresentation; import org.restlet.representation.Representation; import org.restlet.resource.ClientResource; diff --git a/modules/org.restlet/src/main/java/org/restlet/engine/application/DecodeRepresentation.java b/modules/org.restlet/src/main/java/org/restlet/engine/application/DecodeRepresentation.java index 9f6b8c4944..a1793116be 100644 --- a/modules/org.restlet/src/main/java/org/restlet/engine/application/DecodeRepresentation.java +++ b/modules/org.restlet/src/main/java/org/restlet/engine/application/DecodeRepresentation.java @@ -119,7 +119,6 @@ private InputStream getDecodedStream(Encoding encoding, InputStream encodedStrea } else if (encoding.equals(Encoding.DEFLATE_NOWRAP)) { result = new InflaterInputStream(encodedStream, new Inflater(true)); } else if (encoding.equals(Encoding.ZIP)) { - @SuppressWarnings("resource") final ZipInputStream stream = new ZipInputStream(encodedStream); if (stream.getNextEntry() != null) { result = stream; diff --git a/modules/org.restlet/src/main/java/org/restlet/engine/application/EncodeRepresentation.java b/modules/org.restlet/src/main/java/org/restlet/engine/application/EncodeRepresentation.java index 73f25c2d92..e3d1594da3 100644 --- a/modules/org.restlet/src/main/java/org/restlet/engine/application/EncodeRepresentation.java +++ b/modules/org.restlet/src/main/java/org/restlet/engine/application/EncodeRepresentation.java @@ -259,7 +259,6 @@ public void write(OutputStream outputStream) throws IOException { encoderOutputStream = new DeflaterOutputStream(outputStream, new Deflater(Deflater.DEFAULT_COMPRESSION, true)); } else if (this.encoding.equals(Encoding.ZIP)) { - @SuppressWarnings("resource") final ZipOutputStream stream = new ZipOutputStream(outputStream); String name = "entry"; diff --git a/modules/org.restlet/src/main/java/org/restlet/engine/util/DefaultSaxHandler.java b/modules/org.restlet/src/main/java/org/restlet/engine/util/DefaultSaxHandler.java index 7c42b3018f..32a4dd87be 100644 --- a/modules/org.restlet/src/main/java/org/restlet/engine/util/DefaultSaxHandler.java +++ b/modules/org.restlet/src/main/java/org/restlet/engine/util/DefaultSaxHandler.java @@ -29,7 +29,6 @@ import java.util.logging.Logger; import org.restlet.Context; -import org.restlet.engine.Edition; import org.xml.sax.InputSource; import org.xml.sax.SAXException; import org.xml.sax.SAXParseException; diff --git a/modules/org.restlet/src/main/java/org/restlet/engine/util/ImmutableDate.java b/modules/org.restlet/src/main/java/org/restlet/engine/util/ImmutableDate.java index 697154c32b..3bfc85b087 100644 --- a/modules/org.restlet/src/main/java/org/restlet/engine/util/ImmutableDate.java +++ b/modules/org.restlet/src/main/java/org/restlet/engine/util/ImmutableDate.java @@ -26,8 +26,6 @@ import java.util.Date; -import org.restlet.engine.Edition; - /** * Class acting as an immutable date class based on the {@link Date} class. * diff --git a/modules/org.restlet/src/main/java/org/restlet/representation/ObjectRepresentation.java b/modules/org.restlet/src/main/java/org/restlet/representation/ObjectRepresentation.java index 9a3a8591ed..cd115b91ae 100644 --- a/modules/org.restlet/src/main/java/org/restlet/representation/ObjectRepresentation.java +++ b/modules/org.restlet/src/main/java/org/restlet/representation/ObjectRepresentation.java @@ -32,7 +32,6 @@ import java.io.Serializable; import org.restlet.data.MediaType; -import org.restlet.engine.Edition; /** * Representation based on a serializable Java object.