From c760595c62276354caed9dae6da6d88059d0cf99 Mon Sep 17 00:00:00 2001 From: James Petty Date: Thu, 16 May 2024 14:33:19 -0400 Subject: [PATCH] Simplify ParameterizedType#equals --- src/main/java/io/airlift/bytecode/ParameterizedType.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/io/airlift/bytecode/ParameterizedType.java b/src/main/java/io/airlift/bytecode/ParameterizedType.java index ab3b912..36dbcde 100644 --- a/src/main/java/io/airlift/bytecode/ParameterizedType.java +++ b/src/main/java/io/airlift/bytecode/ParameterizedType.java @@ -220,12 +220,7 @@ public boolean equals(Object o) } ParameterizedType that = (ParameterizedType) o; - - if (!type.equals(that.type)) { - return false; - } - - return true; + return type.equals(that.type); } @Override