-
Notifications
You must be signed in to change notification settings - Fork 51
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
Java bindings: add some convenience #96
Conversation
Codecov Report
@@ Coverage Diff @@
## master #96 +/- ##
=======================================
Coverage 83.67% 83.67%
=======================================
Files 17 17
Lines 980 980
=======================================
Hits 820 820
Misses 98 98
Partials 62 62 Continue to review full report at Codecov.
|
@@ -5,6 +5,8 @@ | |||
import static tech.sourced.enry.GoUtils.*; | |||
|
|||
public class Enry { | |||
public static final Guess unknownLanguage = new Guess("UNK", false); |
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.
We use empty string for unknown language in Go, not sure if it'd be fit well here. If so, I'd go with the same convention (could be null
in Java)
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.
Empty string sounds good
Changed to adhere Go conventions. History re-written in 0a6ed07 |
thanks @bzz ! |
Minor convenience for JVM clients:
Enry.unknownLanguage
Guess.toString/.equals/.hashCode
\cc @erizocosmico @abeaumont for review