Skip to content

Commit

Permalink
Merge pull request #26 from digitaldan/backport_of_1460
Browse files Browse the repository at this point in the history
  • Loading branch information
kaikreuzer committed Mar 14, 2016
2 parents 56a96a2 + 8c15096 commit dc79b2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public And(State activeValue, State passiveValue) {
public State calculate(List<Item> items) {
if(items!=null && items.size()>0) {
for(Item item : items) {
if(!activeState.equals(item.getState())) {
if(!activeState.equals(item.getStateAs(activeState.getClass()))) {
return passiveState;
}
}
Expand Down Expand Up @@ -132,7 +132,7 @@ public Or(State activeValue, State passiveValue) {
public State calculate(List<Item> items) {
if(items!=null) {
for(Item item : items) {
if(activeState.equals(item.getState())) {
if(activeState.equals(item.getStateAs(activeState.getClass()))) {
return activeState;
}
}
Expand Down

0 comments on commit dc79b2a

Please sign in to comment.