-
Notifications
You must be signed in to change notification settings - Fork 65
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
Updated gradle wrapper version to support Java 16. #50
base: master
Are you sure you want to change the base?
Conversation
@@ -397,18 +384,46 @@ public FileVisitResult visitFile(Path file, BasicFileAttributes attrs) throws IO | |||
List<ClassInstance> ret = new ArrayList<ClassInstance>(); | |||
|
|||
if (file.toString().endsWith(".class")) { | |||
ClassInstance res = analyze(isInput, tags, srcPath, Files.readAllBytes(file)); | |||
ClassInstance res = analyze(isInput, tags, srcPath, OptionalInt.empty(), Files.readAllBytes(file)); // FIXME? |
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.
No need for fixme; mrj mechanism doesn't exist for flat directory
|
||
boolean isMrj = false; | ||
if(file.getFileName().toString().endsWith(".jar")){ | ||
System.out.println("jar"); |
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 recall java util's jar file api has support for getting version-aware jar entries. If there is existing api, we should use those than build our own since our own is vulnerable to ignoring impl/api requirements
@@ -1,5 +1,5 @@ | |||
distributionBase=GRADLE_USER_HOME | |||
distributionPath=wrapper/dists | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.7.1-bin.zip | |||
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip |
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.
You can also update the github workflows to use java 16 now.
No description provided.