Increase consistency and readability
@@ -545,16 +545,14 @@ public class DeploymentTrigger {
@Override
public String toString() {
return String.format("platform %s%s, application %s%s",
- sourcePlatform.filter(src -> !src.equals(targetPlatform))
- .map(src -> src + " -> ")
- .orElse(""),
+ sourcePlatform.filter(source -> ! source.equals(targetPlatform))
+ .map(source -> source + " -> ").orElse(""),
targetPlatform,
- sourceApplication.filter(src -> !src.equals(targetApplication))
- .map(ApplicationVersion::id)
- .map(src -> src + " -> ")
- .orElse(""),
+ sourceApplication.filter(source -> ! source.equals(targetApplication))
+ .map(source -> source.id() + " -> ").orElse(""),
targetApplication.id());
}
+
}
}
