From 9a2e580a6dd8331df3f9559eaf07a8a37e494cca Mon Sep 17 00:00:00 2001 From: Lee Rhodes Date: Mon, 23 May 2016 11:56:58 -0700 Subject: [PATCH] Version updates to POM. Corrected two style issues detected by "strict". Corrected javadoc spellings and other. --- pom.xml | 32 +++++++++---------- .../com/yahoo/sketches/memory/MemoryUtil.java | 2 ++ .../sketches/quantiles/QuantilesSketch.java | 2 +- .../yahoo/sketches/hll/HipHllSketchTest.java | 2 +- 4 files changed, 20 insertions(+), 18 deletions(-) diff --git a/pom.xml b/pom.xml index ebb3561c4..25eafc8e6 100644 --- a/pom.xml +++ b/pom.xml @@ -66,7 +66,7 @@ org.apache.maven.plugins maven-source-plugin - 2.4 + 3.0.0 attach-sources @@ -116,7 +116,7 @@ org.sonatype.plugins nexus-staging-maven-plugin - 1.6.5 + 1.6.7 true sonatype-nexus-staging @@ -191,7 +191,7 @@ org.eluder.coveralls coveralls-maven-plugin - 4.0.0 + 4.1.0 @@ -222,13 +222,13 @@ org.apache.maven.plugins maven-clean-plugin - 2.5 + 3.0.0 org.apache.maven.plugins maven-dependency-plugin - 2.8 + 2.10 @@ -240,31 +240,31 @@ org.apache.maven.plugins maven-help-plugin - 2.1.1 + 2.2 org.apache.maven.plugins maven-install-plugin - 2.3.1 + 2.5.2 org.apache.maven.plugins maven-resources-plugin - 2.5 + 3.0.0 org.apache.maven.plugins maven-release-plugin - 2.5.2 + 2.5.3 org.apache.maven.plugins maven-assembly-plugin - 2.4 + 2.6 @@ -276,15 +276,15 @@ org.codehaus.mojo exec-maven-plugin - 1.2.1 + 1.5.0 + - strict @@ -296,8 +296,8 @@ maven-compiler-plugin 3.5.1 - 1.7 - 1.7 + 1.8 + 1.8 javac-with-errorprone true @@ -305,7 +305,7 @@ org.codehaus.plexus plexus-compiler-javac-errorprone - 2.5 + 2.7 @@ -315,7 +315,7 @@ - + sonatype-nexus-staging diff --git a/src/main/java/com/yahoo/sketches/memory/MemoryUtil.java b/src/main/java/com/yahoo/sketches/memory/MemoryUtil.java index dcb45411d..5b3c38131 100644 --- a/src/main/java/com/yahoo/sketches/memory/MemoryUtil.java +++ b/src/main/java/com/yahoo/sketches/memory/MemoryUtil.java @@ -16,6 +16,7 @@ public final class MemoryUtil { private MemoryUtil() {} /** + * * @deprecated this method was moved to * {@link NativeMemory#copy(Memory, long, Memory, long, long)} * @param source the source Memory @@ -24,6 +25,7 @@ private MemoryUtil() {} * @param dstOffsetBytes the destination offset * @param lengthBytes the number of bytes to copy */ + @Deprecated public static void copy(Memory source, long srcOffsetBytes, Memory destination, long dstOffsetBytes, long lengthBytes) { NativeMemory.copy(source, srcOffsetBytes, destination, dstOffsetBytes, lengthBytes); diff --git a/src/main/java/com/yahoo/sketches/quantiles/QuantilesSketch.java b/src/main/java/com/yahoo/sketches/quantiles/QuantilesSketch.java index 9708ebb41..a4abe986a 100644 --- a/src/main/java/com/yahoo/sketches/quantiles/QuantilesSketch.java +++ b/src/main/java/com/yahoo/sketches/quantiles/QuantilesSketch.java @@ -35,7 +35,7 @@ * * A frequency histogram can be obtained by simply multiplying these fractions by getN(), * which is the total count of values received. - * The getCDF(*) works similarly, but produces the cumulative distribution instead.

+ * The getCDF(*) works similarly, but produces the cumulative distribution instead. * *

The accuracy of this sketch is a function of the configured value k, which also affects * the overall size of the sketch. Accuracy of this quantile sketch is always with respect to diff --git a/src/test/java/com/yahoo/sketches/hll/HipHllSketchTest.java b/src/test/java/com/yahoo/sketches/hll/HipHllSketchTest.java index d0481e200..68a06f17f 100644 --- a/src/test/java/com/yahoo/sketches/hll/HipHllSketchTest.java +++ b/src/test/java/com/yahoo/sketches/hll/HipHllSketchTest.java @@ -37,7 +37,7 @@ public void testNoUnion() HllSketchBuilder bob = HllSketch.builder().setLogBuckets(10).setHipEstimator(true); HllSketch sketch = bob.build(); - sketch.update(new long[]{182748912741928l}); + sketch.update(new long[]{182748912741928L}); boolean exceptionCaught = false; HllSketch unionInto = bob.build();