refactoring: remove un-used code, add go doc, fix ci (#199)

Refactoring, consisting of
 - remove unused method `isAuxiliaryLanguage` and `FileCountList`
   in order to reduce public API surfaces (go/java)
 - add GoDoc to public APIs
 - ci: java profile use latest go src
  It also now mimics https://docs.travis-ci.com/user/languages/go/#go-import-path
  for non-go build image, as code relies on internal imports.

TEST PLAN:
 - make test
This commit is contained in:
Alexander
2019-02-05 22:54:14 +01:00
committed by GitHub
parent fe18dc0830
commit 13d3d66d37
10 changed files with 51 additions and 149 deletions

View File

@@ -9,16 +9,6 @@ public class Enry {
private static final EnryLibrary nativeLib = EnryLibrary.INSTANCE;
/**
* Returns whether the given language is auxiliary or not.
*
* @param language name of the language, e.g. PHP, HTML, ...
* @return if it's an auxiliary language
*/
public static synchronized boolean isAuxiliaryLanguage(String language) {
return toJavaBool(nativeLib.IsAuxiliaryLanguage(toGoString(language)));
}
/**
* Returns the language of the given file based on the filename and its
* contents.