[ https://issues.apache.org/jira/browse/HDFS-16075?focusedWorklogId=611951&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-611951 ]
ASF GitHub Bot logged work on HDFS-16075: ----------------------------------------- Author: ASF GitHub Bot Created on: 18/Jun/21 21:01 Start Date: 18/Jun/21 21:01 Worklog Time Spent: 10m Work Description: tasanuma commented on pull request #3115: URL: https://github.com/apache/hadoop/pull/3115#issuecomment-863700707 It makes sense to me. A finalized empty array is immutable. @virajjasani Could you fix the new checkstyle warning? -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 611951) Time Spent: 0.5h (was: 20m) > Use empty array constants present in StorageType and DatanodeInfo to avoid > creating redundant objects > ----------------------------------------------------------------------------------------------------- > > Key: HDFS-16075 > URL: https://issues.apache.org/jira/browse/HDFS-16075 > Project: Hadoop HDFS > Issue Type: Improvement > Reporter: Viraj Jasani > Assignee: Viraj Jasani > Priority: Major > Labels: pull-request-available > Time Spent: 0.5h > Remaining Estimate: 0h > > StorageType and DatanodeInfo already provides empty array constants. We > should use them where possible in order to avoid creating unnecessary new > empty array objects. -- This message was sent by Atlassian Jira (v8.3.4#803005) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org