]> source.dussan.org Git - archiva.git/commitdiff
Adding fix for jdk11
authorMartin Stockhammer <martin_s@apache.org>
Sat, 28 Aug 2021 21:58:22 +0000 (23:58 +0200)
committerMartin Stockhammer <martin_s@apache.org>
Sat, 28 Aug 2021 21:58:22 +0000 (23:58 +0200)
archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/pom.xml
archiva-modules/metadata/metadata-store-provider/metadata-store-cassandra/src/main/java/org/apache/archiva/metadata/repository/cassandra/DefaultCassandraArchivaManager.java

index bb9ae94fa9e5c9a356564369bd37a8baaf64e0a2..e0f592a7af8c5c96b7300373e7a1f01bfa8bf1ac 100644 (file)
           </systemPropertyVariables>
           <trimStackTrace>false</trimStackTrace>
           <skip>false</skip>
+          <classesDirectory>${project.build.outputDirectory}</classesDirectory>
         </configuration>
         <dependencies>
           <dependency>
index fb1180b60672d02e82cc92f67aa386c6207fe946..7678031ef719ff39635a42a304a2142989e22739 100644 (file)
@@ -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;