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

Java bindings: add some convenience #96

Merged
merged 1 commit into from
Aug 11, 2017
Merged

Conversation

bzz
Copy link
Contributor

@bzz bzz commented Aug 11, 2017

Minor convenience for JVM clients:

  • add static Enry.unknownLanguage
  • generate Guess.toString/.equals/.hashCode

\cc @erizocosmico @abeaumont for review

@codecov
Copy link

codecov bot commented Aug 11, 2017

Codecov Report

Merging #96 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

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

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2c6a48e...0a6ed07. Read the comment docs.

@abeaumont abeaumont self-assigned this Aug 11, 2017
@@ -5,6 +5,8 @@
import static tech.sourced.enry.GoUtils.*;

public class Enry {
public static final Guess unknownLanguage = new Guess("UNK", false);
Copy link
Contributor

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Empty string sounds good

@bzz
Copy link
Contributor Author

bzz commented Aug 11, 2017

Changed to adhere Go conventions. History re-written in 0a6ed07

@abeaumont abeaumont merged commit 554c925 into src-d:master Aug 11, 2017
@abeaumont
Copy link
Contributor

thanks @bzz !

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