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
This commit is contained in:
ray
2006-05-31 03:24:35 +00:00
parent e394ddd5a5
commit a1774e073d
+4 -4
View File
@@ -533,16 +533,16 @@ public class HashIntMap<V> extends AbstractMap<Integer,V>
// read the keys and values
for (int i=0; i<size; i++) {
int key = s.readInt();
@SuppressWarnings(value={"unchecked"})
V value = (V)s.readObject();
@SuppressWarnings("unchecked") V value = (V)s.readObject();
put(key, value);
}
}
@SuppressWarnings(value={"unchecked"})
protected Record<V>[] createBuckets (int size)
{
return (Record<V>[]) new Record[size];
@SuppressWarnings("unchecked") Record<V>[] recs =
(Record<V>[]) new Record[size];
return recs;
}
protected static class Record<V> implements Entry<Integer,V>, IntEntry<V>