GzipCodec has Java 6 specific code and it can be removed.
public static final String JVMVersion= System.getProperty("java.version");
private static final boolean HAS_BROKEN_FINISH =
(IBM_JAVA && JVMVersion.contains("1.6.0"));
Hadoop 2.7+ dropped Java 6 support.
Remove unused imports from GzipCodec.java
GzipCodec NPE upon reset with IBM JDK
Link to the original issue where the workaround has been introduced.
Removed the code intoduced by HADOOP-8419 (except unit test)
This message was automatically generated.
+1, committing this shortly.
Committed this to trunk and branch-2. Thanks Elek, Marton for the contribution.
I found there are some unused imports after committing this (sorry for that). I'll file a separate jira to track this.
SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #11300 (See https://builds.apache.org/job/Hadoop-trunk-Commit/11300/)
HADOOP-14097. Remove Java6 specific code from GzipCodec.java. (aajisaka: rev 50decd36130945e184734dcd55b8912be6f4550a)