Skip to content
This repository has been 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
merged 1 commit into from
May 18, 2020

Conversation

anmeng10101
Copy link
Collaborator

No description provided.

@@ -166,7 +167,7 @@ void addChildren(TypeElement classElement, List<String> children) {

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

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
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.

src/test/java/com/microsoft/samples/SuperHero.java Outdated Show resolved Hide resolved
src/test/java/com/microsoft/util/UtilsTest.java Outdated Show resolved Hide resolved
@anmeng10101 anmeng10101 force-pushed the anmeng-moveUtils branch 2 times, most recently from fc697d7 to 788e6fe Compare May 18, 2020 06:20
@@ -39,7 +39,7 @@ public SuperHero(String heroName, String uniquePower, int health, int defense) {
* </p>
*
* @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

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
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants