-
Notifications
You must be signed in to change notification settings - Fork 187
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
base: master
Are you sure you want to change the base?
Add null-ptr-check on UrlDetector & InputTextReader #9
Conversation
There was a problem hiding this 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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
@tzuhanjan Greetings! Could you accept the request or ask someone to? Thank you! |
@leffsu, @tzuhanjan if don't mind I want to continue clean up the PR? |
No description provided.