@Test public void nullNotEqual() { KeyMatcher matcher = new KeyMatcher() { @Override public boolean matches(MessageKey message) { return false; } }; assertFalse(matcher.equals(null)); }
@Override public boolean equals(Object obj) { return obj != null && obj == this; }
KeyMatcher { @Override public boolean equals(Object obj) { return obj != null && obj == this; } }
KeyMatcher { @Override public boolean equals(Object obj) { return obj != null && obj == this; }  }
KeyMatcher { @Override public boolean equals(Object obj) { return obj != null && obj == this; }  abstract boolean matches(MessageKey key); boolean matches(KeyedMessage other); static KeyMatcher getWildcardMatcher(); @Override boolean equals(Object obj); }
KeyMatcher { @Override public boolean equals(Object obj) { return obj != null && obj == this; }  abstract boolean matches(MessageKey key); boolean matches(KeyedMessage other); static KeyMatcher getWildcardMatcher(); @Override boolean equals(Object obj);  }