-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[MNG-8494] Restore Maven 3 compatibility #2031
base: master
Are you sure you want to change the base?
Conversation
<codeSegment> | ||
<version>4.0.0/4.0.99</version> | ||
<code> | ||
<![CDATA[ |
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.
not sure what CDATA is doing here. It's not needed
<codeSegment> | ||
<version>1.0.0/1.1.0</version> | ||
<code> | ||
<![CDATA[ |
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.
not sure what CDATA is doing here. It's not needed
} | ||
|
||
protected AbstractMavenTransferListener(MessageBuilderFactory messageBuilderFactory, PrintWriter out) { | ||
this.messageBuilderFactory = messageBuilderFactory; | ||
protected PrintStream out; |
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.
PrintStream is wonky for multiple reasons. Can we just use an output stream writer instead?
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 fully agree, however the code has already been cleaned up in the non deprecated version:
Line 36 in 698614e
public abstract class AbstractMavenTransferListener extends AbstractTransferListener { |
That class is purely for compatibility, so no
protected
stuff should be changed.
The maven-embedder is here for compatibility and not used when launching Maven from CLI directly.
/** | ||
* Puts the specified data into the cache. | ||
* | ||
* @param groupId The group id of the cache record, must not be {@code null}. |
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.
Oracle javadoc guidelines are no initial capitalization on Javadoc comments and period only after or before a complete sentence
|
||
/** | ||
* Creates a copy of the data suitable for retrieval from the cache. The retrieved data can be mutated after the | ||
* cache is queried but the state of the cache must not change so we need to make a copy. |
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.
queried,
99% of the code here is copy/pasted from maven-3.9.x branch to restore compatibility... so I'm fine with any change you suggest, but I really don't expect you to closely review all the changed files. |
These are literally copies of Maven 3 classes. |
IMHO last commit should be undone:
|
No description provided.