[
https://issues.apache.org/jira/browse/HDFS-10751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Akira Ajisaka resolved HDFS-10751.
----------------------------------
Resolution: Duplicate
Superceded by HDFS-10752. Closing.
> Log refactoring: method invocation should be replaced by a shorter method
> -------------------------------------------------------------------------
>
> Key: HDFS-10751
> URL: https://issues.apache.org/jira/browse/HDFS-10751
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.7.2
> Reporter: Nemo Chen
> Priority: Major
>
> Similar to the fix for AVRO-115. In file:
> hadoop-rel-release-2.7.2/hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/OpenFileCtxCache.java
> in line 72, the logging code:
> {code:borderStyle=solid}
> LOG.trace("openFileMap size:" + openFileMap.size());
> {code}
> In the same class, there is a method in line 189:
> {code:borderStyle=solid}
> int size() {
> return openFileMap.size();
> }
> {code}
> We can tell that openFileMap.size() could be replaced by method size() for
> the case of readability and simplicity
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]