From a1774e073da5e176628afcc2bb51b57b2d370c1b Mon Sep 17 00:00:00 2001 From: ray Date: Wed, 31 May 2006 03:24:35 +0000 Subject: [PATCH] Following mike's example, let's put the @SuppressWarnings on the same line as the thing we're suppressing, to more closely couple them. Also, removed one hanging on a method by using a temporary variable within. git-svn-id: https://samskivert.googlecode.com/svn/trunk@1848 6335cc39-0255-0410-8fd6-9bcaacd3b74c --- src/java/com/samskivert/util/HashIntMap.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/java/com/samskivert/util/HashIntMap.java b/src/java/com/samskivert/util/HashIntMap.java index 6f78e919..e2cc2030 100644 --- a/src/java/com/samskivert/util/HashIntMap.java +++ b/src/java/com/samskivert/util/HashIntMap.java @@ -533,16 +533,16 @@ public class HashIntMap extends AbstractMap // read the keys and values for (int i=0; i[] createBuckets (int size) { - return (Record[]) new Record[size]; + @SuppressWarnings("unchecked") Record[] recs = + (Record[]) new Record[size]; + return recs; } protected static class Record implements Entry, IntEntry