From e1068e8c7a6cbade8a8c887932d2e2f70c04029c Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Sun, 25 Aug 2024 16:32:14 -0400 Subject: [PATCH] Use final --- .../apache/commons/collections4/list/TransformedList.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/collections4/list/TransformedList.java b/src/main/java/org/apache/commons/collections4/list/TransformedList.java index 8826695d0..eb701b264 100644 --- a/src/main/java/org/apache/commons/collections4/list/TransformedList.java +++ b/src/main/java/org/apache/commons/collections4/list/TransformedList.java @@ -62,9 +62,8 @@ public class TransformedList extends TransformedCollection implements List } @Override - public void set(E object) { - object = transform(object); - getListIterator().set(object); + public void set(final E object) { + getListIterator().set(transform(object)); } }