From a8857124b85b2f2b707a4c528d9b3bd885ee5ca6 Mon Sep 17 00:00:00 2001 From: Artem Labazin Date: Fri, 19 Apr 2019 22:27:51 +0300 Subject: [PATCH] Changed parent's POM dependency relation --- CHANGELOG.md | 7 + README.md | 4 +- benchmarks/pom.xml | 2 +- .../benchmarks/SyncedIteratorBenchmarks.java | 3 - pom.xml | 184 ++++++++++-------- popout/pom.xml | 3 +- .../lib/popout/ReadWriteBytesPool.java | 3 +- 7 files changed, 113 insertions(+), 93 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c04d020..d5cfd70 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,12 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Add batch write/read (using FileChannel) with customizable batch size; - Add concurrent access to queue (methods with `synchronized` keyword or based on locks). +## [2.0.3](https://github.com/infobip/popout/releases/tag/2.0.3) - 2019-04-20 + +### Changed + +- Changed parent's POM dependency relation. + ## [2.0.2](https://github.com/infobip/popout/releases/tag/2.0.2) - 2019-04-19 ### Changed @@ -43,6 +49,7 @@ Minor update with set of small fixes and Java 9 support. Initial release. ### Added + - Created nice FileQueue builder - FileChannel implementation. - Mmap implementation. diff --git a/README.md b/README.md index 984bb90..1119451 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ Include the dependency to your project's pom.xml file: org.infobip.lib popout - 2.0.2 + 2.0.3 ... @@ -55,7 +55,7 @@ Include the dependency to your project's pom.xml file: or Gradle: ```groovy -compile 'org.infobip.lib:poput:2.0.2' +compile 'org.infobip.lib:popout:2.0.3' ``` ### Create a queue diff --git a/benchmarks/pom.xml b/benchmarks/pom.xml index 6684768..f9dcd21 100644 --- a/benchmarks/pom.xml +++ b/benchmarks/pom.xml @@ -25,7 +25,7 @@ limitations under the License. org.infobip.lib parent - 2.0.2 + 2.0.3 benchmarks diff --git a/benchmarks/src/main/java/org/infobip/lib/popout/benchmarks/SyncedIteratorBenchmarks.java b/benchmarks/src/main/java/org/infobip/lib/popout/benchmarks/SyncedIteratorBenchmarks.java index 3cf6dc8..34b09e6 100644 --- a/benchmarks/src/main/java/org/infobip/lib/popout/benchmarks/SyncedIteratorBenchmarks.java +++ b/benchmarks/src/main/java/org/infobip/lib/popout/benchmarks/SyncedIteratorBenchmarks.java @@ -19,7 +19,6 @@ import static org.openjdk.jmh.annotations.Mode.SingleShotTime; import static java.util.concurrent.TimeUnit.SECONDS; -import static java.util.concurrent.TimeUnit.MINUTES; import static io.appulse.utils.SizeUnit.MEGABYTES; import static java.util.Comparator.reverseOrder; import static org.openjdk.jmh.annotations.Level.Iteration; @@ -46,10 +45,8 @@ import org.openjdk.jmh.annotations.Setup; import org.openjdk.jmh.annotations.State; import org.openjdk.jmh.annotations.TearDown; -import org.openjdk.jmh.annotations.Threads; import org.openjdk.jmh.annotations.Warmup; import org.openjdk.jmh.infra.Blackhole; -import org.openjdk.jmh.infra.ThreadParams; import lombok.SneakyThrows; import lombok.val; diff --git a/pom.xml b/pom.xml index c32e513..239d20f 100644 --- a/pom.xml +++ b/pom.xml @@ -24,7 +24,7 @@ limitations under the License. org.infobip.lib parent - 2.0.2 + 2.0.3 pom @@ -71,7 +71,7 @@ limitations under the License. https://github.com/infobip/popout scm:git:https://github.com/infobip/popout.git scm:git:https://github.com/infobip/popout.git - 2.0.2 + 2.0.3 @@ -242,6 +242,60 @@ limitations under the License. + + org.apache.maven.plugins + maven-compiler-plugin + 3.8.0 + + ${maven.compiler.source} + ${maven.compiler.target} + true + true + true + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.1.0 + + -Xdoclint:none + -Xdoclint:none + true + ${project.build.sourceEncoding} + ${project.build.sourceEncoding} + ${project.build.sourceEncoding} + true + protected + ${java.version} + true + + + + attach-javadocs + + jar + + package + + + + + + org.apache.maven.plugins + maven-source-plugin + 3.0.1 + + + attach-sources + + jar + + + + + org.apache.maven.plugins @@ -278,6 +332,43 @@ limitations under the License. + + + maven-install-plugin + 2.5.2 + + true + + + + pl.project13.maven + git-commit-id-plugin + 2.2.6 + + + git-infos + + revision + + + + + true + false + true + false + git + + ${project.build.outputDirectory}/git.properties + + yyyy-MM-dd'T'HH:mm:ssZ + ${project.basedir}/.git + + git.closest.tag.commit.count + git.closest.tag.name + + + @@ -335,93 +426,18 @@ limitations under the License. org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - ${maven.compiler.source} - ${maven.compiler.target} - true - true - true - + maven-deploy-plugin + false - - org.apache.maven.plugins - maven-javadoc-plugin - 3.1.0 - - -Xdoclint:none - -Xdoclint:none - true - ${project.build.sourceEncoding} - ${project.build.sourceEncoding} - ${project.build.sourceEncoding} - true - protected - ${java.version} - true - - - - attach-javadocs - - jar - - package - - + org.sonatype.plugins + nexus-staging-maven-plugin + false - org.apache.maven.plugins - maven-source-plugin - 3.0.1 - - - attach-sources - - jar - - - - - - - maven-install-plugin - 2.5.2 - - true - - - - pl.project13.maven - git-commit-id-plugin - 2.2.6 - - - git-infos - - revision - - - - - true - false - true - false - git - - ${project.build.outputDirectory}/git.properties - - yyyy-MM-dd'T'HH:mm:ssZ - ${project.basedir}/.git - - git.closest.tag.commit.count - git.closest.tag.name - - + maven-gpg-plugin + false diff --git a/popout/pom.xml b/popout/pom.xml index 8b07e57..9eb267c 100644 --- a/popout/pom.xml +++ b/popout/pom.xml @@ -25,7 +25,7 @@ limitations under the License. org.infobip.lib parent - 2.0.2 + 2.0.3 popout @@ -108,7 +108,6 @@ limitations under the License. org.apache.maven.plugins maven-pmd-plugin - org.apache.maven.plugins maven-checkstyle-plugin diff --git a/popout/src/main/java/org/infobip/lib/popout/ReadWriteBytesPool.java b/popout/src/main/java/org/infobip/lib/popout/ReadWriteBytesPool.java index 5b43401..9d594c6 100644 --- a/popout/src/main/java/org/infobip/lib/popout/ReadWriteBytesPool.java +++ b/popout/src/main/java/org/infobip/lib/popout/ReadWriteBytesPool.java @@ -20,6 +20,7 @@ import io.appulse.utils.Bytes; import io.appulse.utils.BytesPool; +import lombok.NonNull; import lombok.SneakyThrows; import lombok.experimental.FieldDefaults; import lombok.val; @@ -59,7 +60,7 @@ private ReadWriteBytesPool () { * @param consumer acquired buffer consumer. */ @SneakyThrows - public T borrow (ThrowableBytesConsumer consumer) { + public T borrow (@NonNull ThrowableBytesConsumer consumer) { val buffer = pool.acquire(); try { return consumer.consume(buffer);