package com.siyeh.ipp.trivialif.replaceIfWithConditional; | |
class ConditionalCondition { | |
String s; | |
String t; | |
public boolean equals(Object other) { | |
if (!(other instanceof ConditionalCondition)) return false; | |
final ConditionalCondition condition = (ConditionalCondition)other; | |
return (s != null ? !s.equals(condition.s) : condition.s != null) ? false : t.equals(condition.t); | |
} | |
} |