summaryrefslogtreecommitdiff
path: root/plugins/IntentionPowerPak/test/com/siyeh/ipp/equality/replace_equality_with_safe_equals/NegatedObjectComparison_after.java
blob: b7f48289a4b84c90cc15d2ac4778708df1208a21 (plain)
1
2
3
4
5
6
7
8
package com.siyeh.ipp.equality.replace_equality_with_safe_equals;

public class NegatedObjectComparison {

  boolean a(Object a, Object b) {
    return a == null ? b != null : !a.equals(b);
  }
}