From: Robert Varga Date: Thu, 2 Mar 2023 10:14:59 +0000 (+0100) Subject: Eliminate atomix.utils.memory X-Git-Tag: v7.0.5~79 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=7561eca547631ad4816b8f322b6aacb9e6a5ddb7;p=controller.git Eliminate atomix.utils.memory There is only one user of BufferCleaner, move this class an eliminate the now empty package. JIRA: CONTROLLER-2071 Change-Id: I4ab2e49ad2671fb2cf917223605b0c7e6309c69f Signed-off-by: Robert Varga --- diff --git a/third-party/atomix/storage/pom.xml b/third-party/atomix/storage/pom.xml index fa3145c91f..d404373c07 100644 --- a/third-party/atomix/storage/pom.xml +++ b/third-party/atomix/storage/pom.xml @@ -52,7 +52,7 @@ io.atomix.storage.* - !sun.nio.ch,!sun.misc,* + sun.nio.ch;resolution:=optional,sun.misc;resolution:=optional,* diff --git a/third-party/atomix/utils/src/main/java/io/atomix/utils/memory/BufferCleaner.java b/third-party/atomix/storage/src/main/java/io/atomix/storage/journal/BufferCleaner.java similarity index 99% rename from third-party/atomix/utils/src/main/java/io/atomix/utils/memory/BufferCleaner.java rename to third-party/atomix/storage/src/main/java/io/atomix/storage/journal/BufferCleaner.java index 120c559484..5195252564 100644 --- a/third-party/atomix/utils/src/main/java/io/atomix/utils/memory/BufferCleaner.java +++ b/third-party/atomix/storage/src/main/java/io/atomix/storage/journal/BufferCleaner.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.atomix.utils.memory; +package io.atomix.storage.journal; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/third-party/atomix/utils/src/main/java/io/atomix/utils/memory/Cleaner.java b/third-party/atomix/storage/src/main/java/io/atomix/storage/journal/Cleaner.java similarity index 95% rename from third-party/atomix/utils/src/main/java/io/atomix/utils/memory/Cleaner.java rename to third-party/atomix/storage/src/main/java/io/atomix/storage/journal/Cleaner.java index f0027c32bd..1a1b124bf7 100644 --- a/third-party/atomix/utils/src/main/java/io/atomix/utils/memory/Cleaner.java +++ b/third-party/atomix/storage/src/main/java/io/atomix/storage/journal/Cleaner.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package io.atomix.utils.memory; +package io.atomix.storage.journal; import java.io.IOException; import java.nio.ByteBuffer; diff --git a/third-party/atomix/storage/src/main/java/io/atomix/storage/journal/MappedJournalSegmentWriter.java b/third-party/atomix/storage/src/main/java/io/atomix/storage/journal/MappedJournalSegmentWriter.java index 82838f9063..212ce29442 100644 --- a/third-party/atomix/storage/src/main/java/io/atomix/storage/journal/MappedJournalSegmentWriter.java +++ b/third-party/atomix/storage/src/main/java/io/atomix/storage/journal/MappedJournalSegmentWriter.java @@ -18,7 +18,6 @@ package io.atomix.storage.journal; import com.esotericsoftware.kryo.KryoException; import io.atomix.storage.StorageException; import io.atomix.storage.journal.index.JournalIndex; -import io.atomix.utils.memory.BufferCleaner; import io.atomix.utils.serializer.Namespace; import java.io.IOException; diff --git a/third-party/atomix/utils/pom.xml b/third-party/atomix/utils/pom.xml index eefdd393b0..cf46d877a4 100644 --- a/third-party/atomix/utils/pom.xml +++ b/third-party/atomix/utils/pom.xml @@ -56,21 +56,6 @@ - - org.apache.felix - maven-bundle-plugin - true - - - - io.atomix.utils.* - - - sun.nio.ch;resolution:=optional,sun.misc;resolution:=optional,* - - - - maven-checkstyle-plugin diff --git a/third-party/atomix/utils/src/main/java/io/atomix/utils/memory/package-info.java b/third-party/atomix/utils/src/main/java/io/atomix/utils/memory/package-info.java deleted file mode 100644 index 6827ff899b..0000000000 --- a/third-party/atomix/utils/src/main/java/io/atomix/utils/memory/package-info.java +++ /dev/null @@ -1,20 +0,0 @@ -/* - * Copyright 2017-present Open Networking Foundation - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * Provides classes and interfaces for performing low-level on- and off-heap memory management. - */ -package io.atomix.utils.memory;