-
Notifications
You must be signed in to change notification settings - Fork 84
[SHRINKRES-327] Resolve probable bugs #191
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
Conversation
...en/src/main/java/org/jboss/shrinkwrap/resolver/api/maven/coordinate/MavenCoordinateImpl.java
Outdated
Show resolved
Hide resolved
...maven/src/main/java/org/jboss/shrinkwrap/resolver/api/maven/coordinate/MavenCoordinates.java
Outdated
Show resolved
Hide resolved
| InvalidConfigurationFileException { | ||
| this.session = LoadPomTask.loadPomFromFile(pomFile).execute(session); | ||
| this.session = LoadPomDependenciesTask.INSTANCE.execute(session); | ||
| LoadPomDependenciesTask.INSTANCE.execute(session); |
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 don't understand this change.
| } | ||
|
|
||
| // add dependencies | ||
| this.session = AddAllDeclaredDependenciesTask.INSTANCE.execute(session); |
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.
ditto, don't understand reasoning for this
.../src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/embedded/MavenDownloadsTestCase.java
Outdated
Show resolved
Hide resolved
...pl-maven/src/main/java/org/jboss/shrinkwrap/resolver/impl/maven/MavenWorkingSessionImpl.java
Outdated
Show resolved
Hide resolved
| settings = decryptPasswords(settings); | ||
| enrichWithLocalRepository(settings); | ||
| enrichWithOfflineMode(settings); | ||
| decryptPasswords(settings); |
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'm almost sure you're loosing state (if the methods didn't change since this code was written)
2d54703 to
fc5437c
Compare
|
All the Perhaps more importantly - syntax wise - the repeated assignment of the variable could indicate that the methods return different instance, which is not the case. |
fc5437c to
e9c1bc5
Compare
|
@petrberan needs rebase |
e9c1bc5 to
07557c8
Compare
https://issues.redhat.com/browse/SHRINKRES-327