From 5285a68eee3116855d541f2000fa2928ee42c964 Mon Sep 17 00:00:00 2001 From: Hannes Greule Date: Tue, 29 Jun 2021 13:00:44 +0200 Subject: [PATCH] refactor: Remove redundant if statement (#4011) --- .../reflect/reference/CtIntersectionTypeReferenceImpl.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/spoon/support/reflect/reference/CtIntersectionTypeReferenceImpl.java b/src/main/java/spoon/support/reflect/reference/CtIntersectionTypeReferenceImpl.java index 92fcb22c08e..b4553760d03 100644 --- a/src/main/java/spoon/support/reflect/reference/CtIntersectionTypeReferenceImpl.java +++ b/src/main/java/spoon/support/reflect/reference/CtIntersectionTypeReferenceImpl.java @@ -40,9 +40,6 @@ public C setBounds(List>emptySet()) { - this.bounds = new ArrayList<>(); - } getFactory().getEnvironment().getModelChangeListener().onListDeleteAll(this, BOUND, this.bounds, new ArrayList<>(this.bounds)); this.bounds.clear(); for (CtTypeReference bound : bounds) {