You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by bo...@apache.org on 2016/05/16 04:21:14 UTC
commons-compress git commit: COMPRESS-354 make PureJavaCrc32C final
Repository: commons-compress
Updated Branches:
refs/heads/master d04e2a7ef -> 3083ea535
COMPRESS-354 make PureJavaCrc32C final
Project: http://git-wip-us.apache.org/repos/asf/commons-compress/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-compress/commit/3083ea53
Tree: http://git-wip-us.apache.org/repos/asf/commons-compress/tree/3083ea53
Diff: http://git-wip-us.apache.org/repos/asf/commons-compress/diff/3083ea53
Branch: refs/heads/master
Commit: 3083ea535f6d76c93825d7a7bd1dbea227f447a5
Parents: d04e2a7
Author: Stefan Bodewig <bo...@apache.org>
Authored: Mon May 16 06:20:44 2016 +0200
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Mon May 16 06:20:44 2016 +0200
----------------------------------------------------------------------
src/changes/changes.xml | 4 ++++
.../commons/compress/compressors/snappy/PureJavaCrc32C.java | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/3083ea53/src/changes/changes.xml
----------------------------------------------------------------------
diff --git a/src/changes/changes.xml b/src/changes/changes.xml
index 7c0291b..b025050 100644
--- a/src/changes/changes.xml
+++ b/src/changes/changes.xml
@@ -53,6 +53,10 @@ The <action> type attribute can be add,update,fix,remove.
<action issue="COMPRESS-353" type="update" date="2016-05-06" dev="ggregory">
Javadoc for BZip2CompressorInputStream(InputStream, boolean) should refer to IOEx, not NPE.
</action>
+ <action issue="COMPRESS-354" type="update" date="2016-05-16">
+ PureJavaCrc32C in the snappy package is now final so it is now
+ safe to call a virtual method inside the constructor.
+ </action>
</release>
<release version="1.11" date="2016-04-06"
description="Release 1.11">
http://git-wip-us.apache.org/repos/asf/commons-compress/blob/3083ea53/src/main/java/org/apache/commons/compress/compressors/snappy/PureJavaCrc32C.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/compress/compressors/snappy/PureJavaCrc32C.java b/src/main/java/org/apache/commons/compress/compressors/snappy/PureJavaCrc32C.java
index f5ec54c..611aeff 100644
--- a/src/main/java/org/apache/commons/compress/compressors/snappy/PureJavaCrc32C.java
+++ b/src/main/java/org/apache/commons/compress/compressors/snappy/PureJavaCrc32C.java
@@ -32,7 +32,7 @@ import java.util.zip.Checksum;
* @NotThreadSafe
* @since 1.7
*/
-class PureJavaCrc32C implements Checksum {
+final class PureJavaCrc32C implements Checksum {
/** the current CRC value, bit-flipped */
private int crc;