[
https://issues.apache.org/jira/browse/HDFS-16605?focusedWorklogId=776581&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-776581
]
ASF GitHub Bot logged work on HDFS-16605:
-----------------------------------------
Author: ASF GitHub Bot
Created on: 31/May/22 22:29
Start Date: 31/May/22 22:29
Worklog Time Spent: 10m
Work Description: slfan1989 commented on code in PR #4375:
URL: https://github.com/apache/hadoop/pull/4375#discussion_r886177581
##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/resolver/order/TestLocalResolver.java:
##########
@@ -78,12 +77,8 @@ public void testLocalResolver() throws IOException {
StringBuilder sb = new StringBuilder("clientX");
LocalResolver localResolver = new LocalResolver(conf, router);
LocalResolver spyLocalResolver = spy(localResolver);
- doAnswer(new Answer<String>() {
- @Override
- public String answer(InvocationOnMock invocation) throws Throwable {
- return sb.toString();
- }
- }).when(spyLocalResolver).getClientAddr();
+ doAnswer((Answer<String>) invocation ->
Review Comment:
Thanks for your help reviewing the code, I will fix it.
Issue Time Tracking
-------------------
Worklog Id: (was: 776581)
Time Spent: 1h (was: 50m)
> Improve Code With Lambda in hadoop-hdfs-rbf moudle
> --------------------------------------------------
>
> Key: HDFS-16605
> URL: https://issues.apache.org/jira/browse/HDFS-16605
> Project: Hadoop HDFS
> Issue Type: Improvement
> Components: rbf
> Affects Versions: 3.4.0
> Reporter: fanshilun
> Assignee: fanshilun
> Priority: Minor
> Labels: pull-request-available
> Time Spent: 1h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]