Skip to content
Permalink
Browse files
Remove useless null-check.
  • Loading branch information
garydgregory committed Nov 20, 2020
1 parent e58c654 commit cc12c69db7bc3ebd034128f643c6a6f514aa02b6
Showing 2 changed files with 2 additions and 2 deletions.
@@ -100,7 +100,7 @@ public V setValue(V val) {
*/
@Override
public boolean equals(Object o) {
if (o != null && o instanceof Map.Entry) {
if (o instanceof Map.Entry) {
Map.Entry<?, ?> entry = (Map.Entry<?, ?>) o;
return (this.getKey() == null ?
entry.getKey() == null : this.getKey().equals(entry.getKey())) &&
@@ -84,7 +84,7 @@ protected String getCommandName(ServletWebContext<String, Object> swcontext) {
*/
@SuppressWarnings("unchecked")
Catalog<String, Object, ServletWebContext<String, Object>> catalog =
testCatalog != null && testCatalog instanceof Catalog ?
testCatalog instanceof Catalog ?
(Catalog<String, Object, ServletWebContext<String, Object>>) testCatalog :
super.getCatalog(context);

0 comments on commit cc12c69

Please sign in to comment.