From eecca9d71bea8a116483afe02627892e345b6914 Mon Sep 17 00:00:00 2001 From: "ray.j.greenwell" Date: Wed, 13 Jan 2010 17:53:34 +0000 Subject: [PATCH] Dur, and now that we don't need the @SuppressWarnings, we don't need the temporary variable to which it was applied. git-svn-id: https://samskivert.googlecode.com/svn/trunk@2697 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/HashIntMap.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/java/com/samskivert/util/HashIntMap.java b/src/java/com/samskivert/util/HashIntMap.java index 1aa583ba..c685c99b 100644 --- a/src/java/com/samskivert/util/HashIntMap.java +++ b/src/java/com/samskivert/util/HashIntMap.java @@ -463,8 +463,7 @@ public class HashIntMap extends AbstractMap Record[] buckets = result._buckets = result._buckets.clone(); for (int ii = buckets.length - 1; ii >= 0; ii--) { if (buckets[ii] != null) { - Record entry = buckets[ii].clone(); - buckets[ii] = entry; + buckets[ii] = buckets[ii].clone(); } } return result; @@ -591,8 +590,7 @@ public class HashIntMap extends AbstractMap Record result = (Record) super.clone(); // value is not cloned if (result.next != null) { - Record next = result.next.clone(); - result.next = next; + result.next = result.next.clone(); } return result;