Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[refactor] use utility method of Objects to simplify code #284

Merged
merged 2 commits into from Sep 10, 2019

Conversation

caidezhi
Copy link
Contributor

@caidezhi caidezhi commented Sep 4, 2019

use utility method ( Objects.equals ) to rewrite some equals logic in code base.

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not use star import

Copy link
Contributor Author

@caidezhi caidezhi Sep 5, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@olamy thanks for review.I have modified the code as your suggestion.

import java.util.Map;
import java.util.Properties;
import java.util.Set;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not use star import

import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not use star import

import java.util.Iterator;
import java.util.Map;
import java.util.Properties;
import java.util.*;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we do not use star import

@caidezhi caidezhi requested a review from olamy September 6, 2019 09:19
Copy link
Member

@olamy olamy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM ezy changes with simplified code

@olamy olamy merged commit d09bc74 into apache:master Sep 10, 2019
@caidezhi caidezhi deleted the refactor branch September 10, 2019 08:01
@rfscholte
Copy link
Contributor

@caidezhi next time please run mvn verify on the project before creating a PR. You would have noticed that checkstyle would have complaint. I'll fix it on our master.

@caidezhi
Copy link
Contributor Author

@rfscholte I am sorry that the pull request cause some inconveniences (forget that my IDEA setting is "-Dcheckstyle.skip=true"). I will follow the process in future. Many thanks for your help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants