Desmeister commented on a change in pull request #3739:
URL: https://github.com/apache/hadoop/pull/3739#discussion_r759875002
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionCodecFactory.java
##########
@@ -29,6 +29,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
+import static org.apache.hadoop.util.StringUtils.toLowerCase;
Review comment:
Removed, and fixed.
##########
File path:
hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/io/compress/CompressionCodecFactory.java
##########
@@ -199,7 +201,7 @@ public CompressionCodec getCodec(Path file) {
if (codecs != null) {
String filename = file.getName();
String reversedFilename =
- new StringBuilder(filename).reverse().toString();
+ toLowerCase(new StringBuilder(filename).reverse().toString());
Review comment:
Fixed as suggested.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]