fixed java 8 compatibility
This commit is contained in:
@@ -174,10 +174,10 @@ public class ExportDependencies extends DefaultTask {
|
|||||||
String shape;
|
String shape;
|
||||||
String color;
|
String color;
|
||||||
if(id instanceof ProjectComponentIdentifier) {
|
if(id instanceof ProjectComponentIdentifier) {
|
||||||
shape = artifacts.isEmpty() ? "box" : "none";
|
shape = !artifacts.isPresent() ? "box" : "none";
|
||||||
color = "#88ff88";
|
color = "#88ff88";
|
||||||
} else if(id instanceof ModuleComponentIdentifier) {
|
} else if(id instanceof ModuleComponentIdentifier) {
|
||||||
shape = artifacts.isEmpty() ? "oval" : "none";
|
shape = !artifacts.isPresent() ? "oval" : "none";
|
||||||
color = "#ffff88";
|
color = "#ffff88";
|
||||||
} else {
|
} else {
|
||||||
throw new IllegalArgumentException(id.getClass().getName());
|
throw new IllegalArgumentException(id.getClass().getName());
|
||||||
|
Reference in New Issue
Block a user