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

[EMAIL-192] Update code for Java 7 and other clean ups. #16

Closed
wants to merge 20 commits into from

Conversation

XenoAmess
Copy link
Contributor

No description provided.

@XenoAmess
Copy link
Contributor Author

advice:
well I still think some functions duplicated in EmailUtils from commons-lang shall be replaced by what from commons-lang...but that is another story.

@garydgregory garydgregory changed the title fix code smells Update code for Java 7 and other clean ups. May 27, 2020
@@ -406,6 +406,36 @@
</execution>
</executions>
</plugin>
<plugin>
Copy link
Member

Choose a reason for hiding this comment

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

@XenoAmess
The PR looks good but I am wondering why we need to configure the Javadoc plugin here. If there is something missing in the parent POM, we should fix it there. What is this doing for you that the parent is not?

Copy link
Contributor Author

@XenoAmess XenoAmess May 27, 2020

Choose a reason for hiding this comment

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

@XenoAmess
The PR looks good but I am wondering why we need to configure the Javadoc plugin here. If there is something missing in the parent POM, we should fix it there. What is this doing for you that the parent is not?

@garydgregory
Yes I do have a reason to do so.

to repreduce what I met, please follow the steps below:
(my environment win10x64, openjdk13, but I don't think environment will matter much in this problem)

  1. clone this pr in your pc.

  2. see what I changed in this line: https://github.com/apache/commons-email/pull/16/files/6a9fe4a9ff73a1119c3624f8d861b01d7c6715fd#diff-77fad0477b22b44d8e52db08a61ff77eL63

  3. please revert it back to the line content which before I commit the change,
    means /** pattern for extracting <img> tags */ .

  4. run mvn package for this repo.

  5. see the build error reported.

  6. please go delete the maven-javadoc-plugin in pom.xml.

  7. run mvn package for this repo.

  8. see the build success reported.

So for conclusion, I add this plugin here in this pom to [force javadoc be correct], by forcing maven fail if [javadoc be uncorrect].

I have no idea whether we can change something in commons-parent to have a same outcome without adding javadoc plugin in this repo. I'm not that familiar with complex maven repos management.

@XenoAmess
Copy link
Contributor Author

I'm making some unit tests for the regex I added.
I do hope they will be all correct, but I need some tests to proove it.

bugfix for regex.
(sigh...every time I try to make a regex using java I must fail something)
@XenoAmess
Copy link
Contributor Author

tests for new added functions done.

@XenoAmess XenoAmess changed the title Update code for Java 7 and other clean ups. [LANG-1547] Update code for Java 7 and other clean ups. May 30, 2020
@XenoAmess XenoAmess changed the title [LANG-1547] Update code for Java 7 and other clean ups. Update code for Java 7 and other clean ups. May 30, 2020
@XenoAmess XenoAmess changed the title Update code for Java 7 and other clean ups. [EMAIL-192] Update code for Java 7 and other clean ups. May 30, 2020
… develop

� Conflicts:
�	pom.xml
�	src/main/java/org/apache/commons/mail/HtmlEmail.java
@XenoAmess
Copy link
Contributor Author

Hi. So what should we do next for this pr?

@garydgregory
Copy link
Member

Closing: Out of date.

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