diff --git a/junit/control/abc.gps/a.gpr b/junit/control/abc.gps/a.gpr index 8fb9c313d..0c7ed1141 100644 --- a/junit/control/abc.gps/a.gpr +++ b/junit/control/abc.gps/a.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 125 59 19 19 - + par: diff --git a/junit/control/abc.gps/b.gpr b/junit/control/abc.gps/b.gpr index c8d27197d..f12b542d3 100644 --- a/junit/control/abc.gps/b.gpr +++ b/junit/control/abc.gps/b.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 85 82 19 19 - + par: diff --git a/junit/control/abc.gps/c.gpr b/junit/control/abc.gps/c.gpr index 85964f8bb..2aa0ad3df 100644 --- a/junit/control/abc.gps/c.gpr +++ b/junit/control/abc.gps/c.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 135 89 19 19 - + par: diff --git a/junit/control/abc.gps/d.gpr b/junit/control/abc.gps/d.gpr index 4256b1407..464df0da7 100644 --- a/junit/control/abc.gps/d.gpr +++ b/junit/control/abc.gps/d.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 148 88 19 19 - + par: diff --git a/junit/control/emptyrules.gps/a.gpr b/junit/control/emptyrules.gps/a.gpr index d0ce9a43a..283b32f8c 100644 --- a/junit/control/emptyrules.gps/a.gpr +++ b/junit/control/emptyrules.gps/a.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 97 60 19 19 - + par: diff --git a/junit/control/emptyrules.gps/b.gpr b/junit/control/emptyrules.gps/b.gpr index a488ceb4a..60018e8c0 100644 --- a/junit/control/emptyrules.gps/b.gpr +++ b/junit/control/emptyrules.gps/b.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 90 53 19 19 - + par: diff --git a/junit/control/emptyrules.gps/c.gpr b/junit/control/emptyrules.gps/c.gpr index 6719a5db6..e26e7bd5c 100644 --- a/junit/control/emptyrules.gps/c.gpr +++ b/junit/control/emptyrules.gps/c.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 117 79 19 19 - + par: diff --git a/junit/control/emptyrules.gps/d.gpr b/junit/control/emptyrules.gps/d.gpr index b53312e30..71ba245d3 100644 --- a/junit/control/emptyrules.gps/d.gpr +++ b/junit/control/emptyrules.gps/d.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 121 81 19 19 - + par: diff --git a/junit/control/emptyrules.gps/e.gpr b/junit/control/emptyrules.gps/e.gpr index 89a174753..f4f3d7b4a 100644 --- a/junit/control/emptyrules.gps/e.gpr +++ b/junit/control/emptyrules.gps/e.gpr @@ -1,6 +1,9 @@ - + + + transformer + curly @@ -9,7 +12,7 @@ 91 84 19 19 - + par: diff --git a/src/main/java/nl/utwente/groove/grammar/Rule.java b/src/main/java/nl/utwente/groove/grammar/Rule.java index 2b610732e..e7923e1e2 100755 --- a/src/main/java/nl/utwente/groove/grammar/Rule.java +++ b/src/main/java/nl/utwente/groove/grammar/Rule.java @@ -504,9 +504,9 @@ public CheckPolicy getPolicy() { * and has zero priority. */ private boolean isPropertyLike() { - boolean result = !isModifying() && getPriority() == 0 && getHiddenPars().isEmpty(); + boolean result = !isModifying() && getPriority() == 0; if (result) { - result = getSignature().stream().allMatch(v -> !v.isInOnly()); + result = getSignature().stream().noneMatch(UnitPar::isInOnly); } return result; }