Fix checkstyle issues on master
Fix checkstyle issues following 2.0.x merge and spring-javaformat upgrade. See gh-13932
This commit is contained in:
@@ -49,7 +49,7 @@ class EnvVariables {
|
||||
}
|
||||
|
||||
private static String getValue(String value) {
|
||||
return (value != null ? value : "");
|
||||
return (value != null) ? value : "";
|
||||
}
|
||||
|
||||
public Map<String, String> asMap() {
|
||||
|
||||
@@ -236,7 +236,7 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
|
||||
*/
|
||||
private Artifact getSourceArtifact() {
|
||||
Artifact sourceArtifact = getArtifact(this.classifier);
|
||||
return (sourceArtifact != null ? sourceArtifact : this.project.getArtifact());
|
||||
return (sourceArtifact != null) ? sourceArtifact : this.project.getArtifact();
|
||||
}
|
||||
|
||||
private Artifact getArtifact(String classifier) {
|
||||
@@ -345,8 +345,8 @@ public class RepackageMojo extends AbstractDependencyFilterMojo {
|
||||
this.classifier, target);
|
||||
}
|
||||
else {
|
||||
String artifactId = (this.classifier != null
|
||||
? "artifact with classifier " + this.classifier : "main artifact");
|
||||
String artifactId = (this.classifier != null)
|
||||
? "artifact with classifier " + this.classifier : "main artifact";
|
||||
getLog().info(String.format("Replacing %s %s", artifactId, source.getFile()));
|
||||
source.setFile(target);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user