-
Notifications
You must be signed in to change notification settings - Fork 460
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
Eclipse 4.8.0 (JDT) #262
Eclipse 4.8.0 (JDT) #262
Conversation
Your call. |
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.
Looks great! Just the tiniest of nitpicks.
private static Class<?> getClass(State state) { | ||
if (state.getMavenCoordinate(MAVEN_GROUP_ARTIFACT).isPresent()) | ||
return state.loadClass(FORMATTER_CLASS); | ||
return state.loadClass(FORMATTER_CLASS_OLD); |
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.
Ifs without brackets are dangerous. I would change to this:
if ( ) {
return
} else {
return
}
@@ -42,8 +42,7 @@ | |||
public final class JarState implements Serializable { | |||
private static final long serialVersionUID = 1L; | |||
|
|||
@SuppressWarnings("unused") | |||
private final Set<String> mavenCoordinates; | |||
private final TreeSet<String> mavenCoordinates; |
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.
Sorry, I almost missed this one. There are corner-cases where classpath order matters. Unless we have a really compelling reason, I think we should keep this as Set
and not TreeSet
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.
Just wanted to emphasize that I expect a deterministic result for getMavenCoordinates for the same input. I do not insist. What's your final decision?
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.
Set
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.
then feel free to press the merge button, and I'll test the master
integration build on some of my projects
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.
Ok, THX.
Made Spotless-Eclipse-JDT 4.8.0 default version.
Added functionality to lookup Maven Coordinate information from Jar-State as @nedtwigg proposed in #234.
This PR fixes issues #226 and #191.