You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2026/07/09 23:48:26 UTC
(commons-collections) 26/49: Inline single-use local variable.
This is an automated email from the ASF dual-hosted git repository.
garydgregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-collections.git
commit 5a4fd8bd95d0d9dd975f02615ad509a4b3b55ad1
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Thu Jul 9 19:20:49 2026 -0400
Inline single-use local variable.
---
src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java b/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java
index 208332f92..40bfdcbee 100644
--- a/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java
+++ b/src/main/java/org/apache/commons/collections4/map/FixedSizeMap.java
@@ -166,8 +166,7 @@ public class FixedSizeMap<K, V>
@Override
public Collection<V> values() {
- final Collection<V> coll = map.values();
- return UnmodifiableCollection.unmodifiableCollection(coll);
+ return UnmodifiableCollection.unmodifiableCollection(map.values());
}
/**