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

Add null-ptr-check on UrlDetector & InputTextReader #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

XinyueZ
Copy link

@XinyueZ XinyueZ commented Nov 15, 2016

No description provided.

Copy link
Contributor

@tzuhanjan tzuhanjan left a comment

Choose a reason for hiding this comment

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

Thanks for contributing!

*/
public InputTextReader(String content) {
public InputTextReader(String content) throws NullPointerException {
Copy link
Contributor

Choose a reason for hiding this comment

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

How about let's use import javax.annotation.@nonnull instead? Static compile checks seem better than throwing a different type of NPE

*/
public UrlDetector(String content, UrlDetectorOptions options) {
public UrlDetector(String content, UrlDetectorOptions options) throws NullPointerException {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here.

@@ -1,3 +1,9 @@
apply plugin: 'java'
apply plugin: 'idea'

dependencies {
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this still needed with the latest pull?

Copy link
Author

Choose a reason for hiding this comment

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

I think it is no needed more

@leffsu
Copy link

leffsu commented Jan 30, 2019

@tzuhanjan Greetings! Could you accept the request or ask someone to? Thank you!

@XinyueZ
Copy link
Author

XinyueZ commented Jan 30, 2019

@leffsu, @tzuhanjan if don't mind I want to continue clean up the PR?

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

Successfully merging this pull request may close these issues.

3 participants