You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2021/10/01 07:27:00 UTC

[jira] [Work logged] (HADOOP-17863) ABFS: Fix compiler deprecation warning in TextFileBasedIdentityHandler

     [ https://issues.apache.org/jira/browse/HADOOP-17863?focusedWorklogId=658783&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-658783 ]

ASF GitHub Bot logged work on HADOOP-17863:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 01/Oct/21 07:26
            Start Date: 01/Oct/21 07:26
    Worklog Time Spent: 10m 
      Work Description: sumangala-patki commented on a change in pull request #3332:
URL: https://github.com/apache/hadoop/pull/3332#discussion_r720004363



##########
File path: hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/TextFileBasedIdentityHandler.java
##########
@@ -17,6 +17,7 @@
  */
 package org.apache.hadoop.fs.azurebfs.utils;
 
+import org.apache.hadoop.io.IOUtils;

Review comment:
       moved import




-- 
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: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 658783)
    Time Spent: 2.5h  (was: 2h 20m)

> ABFS: Fix compiler deprecation warning in TextFileBasedIdentityHandler
> ----------------------------------------------------------------------
>
>                 Key: HADOOP-17863
>                 URL: https://issues.apache.org/jira/browse/HADOOP-17863
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/azure
>    Affects Versions: 3.3.1
>            Reporter: Sumangala Patki
>            Assignee: Sumangala Patki
>            Priority: Minor
>              Labels: pull-request-available
>          Time Spent: 2.5h
>  Remaining Estimate: 0h
>
> TextFileBasedIdentityHandler uses an instance of LineIterator whose closeQuietly method has been deprecated, resulting in compiler warnings during yetus runs. Fix by leveraging a try-with-resources block to avoid the explicit call to closeQuietly by the LineIterator instance.
> hadoop-tools/hadoop-azure/src/main/java/org/apache/hadoop/fs/azurebfs/utils/TextFileBasedIdentityHandler.java:192:18:[deprecation] closeQuietly(LineIterator) in LineIterator has been deprecated



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org