From: Martin Stockhammer Date: Sat, 28 Aug 2021 21:58:22 +0000 (+0200) Subject: Adding fix for jdk11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=5b76e6d74f1decf5233f7bb72b0c1568b4a18508;p=archiva.git Adding fix for jdk11 --- diff --git a/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml b/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml index bb9ae94fa..e0f592a7a 100644 --- a/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml +++ b/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml @@ -457,6 +457,7 @@ false false + ${project.build.outputDirectory} diff --git a/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java b/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java index fb1180b60..7678031ef 100644 --- a/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java +++ b/archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java @@ -40,10 +40,8 @@ import javax.annotation.PreDestroy; import javax.inject.Inject; import java.util.ArrayList; import java.util.Arrays; -import java.util.Comparator; import java.util.List; -import static com.datastax.oss.driver.api.querybuilder.QueryBuilder.literal; import static com.datastax.oss.driver.api.querybuilder.SchemaBuilder.*; import static org.apache.archiva.metadata.repository.cassandra.model.ColumnNames.*; @@ -58,7 +56,7 @@ public class DefaultCassandraArchivaManager implements CassandraArchivaManager { - private Logger logger = LoggerFactory.getLogger( getClass( ) ); + private static final Logger logger = LoggerFactory.getLogger( DefaultCassandraArchivaManager.class ); @Inject private ApplicationContext applicationContext;