-
Task
-
Resolution: Done
-
Major
-
4.0.0.Beta7
-
None
-
None
Simply executing the project with mvn clean verify shows many different types of warnings, we should try to fix them where possible, example run from travis: https://api.travis-ci.org/v3/job/502886557/log.txt
case 1: obvious duplicated dependency declaration
[WARNING] Some problems were encountered while building the effective model for org.jboss.resteasy:resteasy-profiling-tests:jar:4.0.0-SNAPSHOT [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.jboss.resteasy:resteasy-jackson2-provider:jar -> duplicate declaration of version ${project.version} @ org.jboss.resteasy:resteasy-profiling-tests:[unknown-version], /home/travis/build/resteasy/Resteasy/profiling-tests/pom.xml, line 38, column 21
case 2: checkstyle execution warning
[INFO] --- maven-checkstyle-plugin:3.0.0:checkstyle (check-style) @ resteasy-core-spi --- [INFO] Starting audit... Audit done. [WARNING] Unable to locate Source XRef to link to - DISABLED
case 3: unnecessary warning on empty jar in test-only module
[INFO] --- maven-jar-plugin:3.1.0:jar (default-jar) @ resteasy-integration-tests-spring-unit --- [WARNING] JAR will be empty - no content was marked for inclusion!
case 4: missing jboss logging annotations on classpath
[INFO] Compiling 8 source files to /home/travis/build/resteasy/Resteasy/providers/jackson2/target/classes [WARNING] bootstrap class path not set in conjunction with -source 8 [WARNING] unknown enum constant org.jboss.logging.annotations.Message.Format.MESSAGE_FORMAT reason: class file for org.jboss.logging.annotations.Message$Format not found [WARNING] unknown enum constant org.jboss.logging.annotations.Message.Format.MESSAGE_FORMAT
case 5: warnings on non-explicit varargs usage
[WARNING] /home/travis/build/resteasy/Resteasy/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/internal/ClientWebTarget.java:[327,35] non-varargs call of varargs method with inexact argument type for last parameter; cast to java.lang.Object for a varargs call cast to java.lang.Object[] for a non-varargs call and to suppress this warning
case 6: unchecked conversion and generics not used everywhere
[WARNING] /home/travis/build/resteasy/Resteasy/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/cache/CacheEntry.java:[86,29] unchecked call to put(K,V) as a member of the raw type java.util.Map [WARNING] /home/travis/build/resteasy/Resteasy/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/internal/ClientWebTarget.java:[183,60] unchecked method invocation: method resolveTemplates in class javax.ws.rs.core.UriBuilder is applied to given types required: java.util.Map<java.lang.String,java.lang.Object> found: java.util.Map ...
case 7: a lot of deprecated stuff, this could be divided on:
a) stuff deprecated in resteasy codebase
[WARNING] /home/travis/build/resteasy/Resteasy/resteasy-links/src/test/java/org/jboss/resteasy/links/test/el/TestLinksInvalidEL.java:[77,40] POJOResourceFactory(java.lang.Class<?>) in org.jboss.resteasy.plugins.server.resourcefactory.POJOResourceFactory has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/resteasy-rxjava/src/test/java/org/jboss/resteasy/rxjava/RxTest.java:[83,84] org.jboss.resteasy.rxjava.SingleRxInvoker in org.jboss.resteasy.rxjava has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/profiling-tests/src/test/java/org/jboss/resteasy/test/profiling/InMemoryClientEngine.java:[193,10] ClientResponse(org.jboss.resteasy.client.jaxrs.internal.ClientConfiguration) in org.jboss.resteasy.client.jaxrs.internal.ClientResponse has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/testsuite/unit-tests/src/test/java/org/jboss/resteasy/test/resource/ProgammaticTest.java:[57,52] rootResource(java.lang.Class<?>) in org.jboss.resteasy.spi.metadata.ResourceBuilder has been deprecated
b) usage of deprecated external stuff
[WARNING] /home/travis/build/resteasy/Resteasy/resteasy-client/src/main/java/org/jboss/resteasy/client/jaxrs/engines/VerifierWrapper.java:[9,32] org.apache.http.conn.ssl.X509HostnameVerifier in org.apache.http.conn.ssl has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/providers/jaxb/src/main/java/org/jboss/resteasy/plugins/providers/jaxb/JAXBContextWrapper.java:[17,22] javax.xml.bind.Validator in javax.xml.bind has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/providers/jackson2/src/main/java/org/jboss/resteasy/plugins/providers/jackson/ResteasyJackson2Provider.java:[136,28] withType(java.lang.reflect.Type) in com.fasterxml.jackson.databind.ObjectReader has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/server-adapters/resteasy-netty4/src/main/java/org/jboss/resteasy/plugins/server/netty/SniConfiguration.java:[58,14] JdkSslContext(javax.net.ssl.SSLContext,boolean,java.lang.Iterable<java.lang.String>,io.netty.handler.ssl.CipherSuiteFilter,io.netty.handler.ssl.ApplicationProtocolConfig,io.netty.handler.ssl.ClientAuth) in io.netty.handler.ssl.JdkSslContext has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/resteasy-cache/resteasy-cache-core/src/main/java/org/jboss/resteasy/plugins/cache/server/ServerCacheFeature.java:[82,10] maxEntries(int) in org.infinispan.configuration.cache.EvictionConfigurationBuilder has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/security/resteasy-crypto/src/main/java/org/jboss/resteasy/security/KeyTools.java:[4,29] org.bouncycastle.x509.X509V1CertificateGenerator in org.bouncycastle.x509 has been deprecated [WARNING] /home/travis/build/resteasy/Resteasy/resteasy-core/src/main/java/org/jboss/resteasy/util/Encode.java:[75,38] encode(java.lang.String) in java.net.URLEncoder has been deprecated ...
- is related to
-
RESTEASY-2184 Drop deprecated resteasy-rxjava (RxJava1 integration)
- Resolved
-
RESTEASY-2195 Replace deprecated org.bouncycastle.x509.X509V1CertificateGenerator usage
- Resolved
-
RESTEASY-2205 Get rid of the rest of the compilation warnings
- Resolved