Skip to content
This repository was archived by the owner on Aug 9, 2022. It is now read-only.

move functions for single element to a separate utility class#37

Merged
anmeng10101 merged 1 commit intodevelopfrom
anmeng-moveUtils
May 18, 2020
Merged

move functions for single element to a separate utility class#37
anmeng10101 merged 1 commit intodevelopfrom
anmeng-moveUtils

Conversation

@anmeng10101
Copy link
Copy Markdown
Collaborator

No description provided.

List<? extends Element> filterPrivateElements(List<? extends Element> elements) {
return elements.stream()
.filter(element -> !ElementUtil.isPrivateOrPackagePrivate(element)).collect(Collectors.toList());
.filter(element -> !Utils.isPrivateOrPackagePrivate(element)).collect(Collectors.toList());
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Naming, be more specified about what util.

Copy link
Copy Markdown
Collaborator Author

@anmeng10101 anmeng10101 May 18, 2020

Choose a reason for hiding this comment

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

Reused the logic from java standard doclet source code, so followed its' class naming.

Thinking of using another pr to refine the package name (name space) to make utility structure clearer.

Comment thread src/test/java/com/microsoft/samples/SuperHero.java Outdated
Comment thread src/test/java/com/microsoft/util/UtilsTest.java Outdated
Comment thread src/test/java/com/microsoft/util/UtilsTest.java Outdated
Comment thread src/test/java/com/microsoft/util/ElementUtilTest.java Outdated
@anmeng10101 anmeng10101 force-pushed the anmeng-moveUtils branch 2 times, most recently from fc697d7 to 788e6fe Compare May 18, 2020 06:20
*
* @param incomingDamage the amount of incoming damage for {@link SuperHero}
* @param damageType type of damage with similar word damageTypeLong, sure
* @param damageType type of damage with similar word damageTypeLong, sure
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

why adding space here?

@killa1218 killa1218 self-requested a review May 18, 2020 06:53
@anmeng10101 anmeng10101 merged commit 8373bd1 into develop May 18, 2020
@anmeng10101 anmeng10101 deleted the anmeng-moveUtils branch May 18, 2020 07:15
anmeng10101 added a commit to anmeng10101/docfx-doclet that referenced this pull request Jun 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants