From 8124eabfc03ca867abf255621b1b3eff6cb341d6 Mon Sep 17 00:00:00 2001
From: brinn <brinn>
Date: Mon, 4 Jun 2012 14:04:13 +0000
Subject: [PATCH] Fix some Eclipse warnings about raw types.

SVN: 25543
---
 .../authentication/DefaultSessionManagerTest.java     |  2 +-
 .../ch/systemsx/cisd/common/utilities/BeanUtils.java  | 11 +++++++----
 2 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/authentication/sourceTest/java/ch/systemsx/cisd/authentication/DefaultSessionManagerTest.java b/authentication/sourceTest/java/ch/systemsx/cisd/authentication/DefaultSessionManagerTest.java
index fe392cb8c83..9a82039a8be 100644
--- a/authentication/sourceTest/java/ch/systemsx/cisd/authentication/DefaultSessionManagerTest.java
+++ b/authentication/sourceTest/java/ch/systemsx/cisd/authentication/DefaultSessionManagerTest.java
@@ -95,7 +95,7 @@ public class DefaultSessionManagerTest
         logRecorder = new BufferedAppender("%-5p %c - %m%n", Level.DEBUG);
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings({ "unchecked", "rawtypes" })
     private ISessionManager<BasicSession> createSessionManager(int sessionExpiration)
     {
         return new DefaultSessionManager(sessionFactory, prefixGenerator, authenticationService,
diff --git a/common/source/java/ch/systemsx/cisd/common/utilities/BeanUtils.java b/common/source/java/ch/systemsx/cisd/common/utilities/BeanUtils.java
index 1dbd6e6494a..600ec2fd593 100644
--- a/common/source/java/ch/systemsx/cisd/common/utilities/BeanUtils.java
+++ b/common/source/java/ch/systemsx/cisd/common/utilities/BeanUtils.java
@@ -163,7 +163,8 @@ public final class BeanUtils
         {
         };
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings(
+        { "unchecked", "rawtypes" })
     static final Set<Class> immutableTypes = new LinkedHashSet<Class>(Arrays.asList(boolean.class,
             Boolean.class, byte.class, Byte.class, short.class, Short.class, int.class,
             Integer.class, long.class, Long.class, float.class, Float.class, double.class,
@@ -545,7 +546,8 @@ public final class BeanUtils
         }
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings(
+        { "unchecked", "rawtypes" })
     private static <T> T constructCollection(
             final Constructor<? extends Collection> constructorWithSize, final int size)
             throws InstantiationException, IllegalAccessException, IllegalArgumentException,
@@ -559,7 +561,8 @@ public final class BeanUtils
             { size });
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings(
+        { "unchecked", "rawtypes" })
     private final static <T> T constructCollection(final Class<? extends Collection> collectionClazz)
             throws InstantiationException, IllegalAccessException
     {
@@ -709,7 +712,7 @@ public final class BeanUtils
         }
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings({ "unchecked", "rawtypes" })
     private static void addToUntypedCollection(final Collection destination, final Object element)
     {
         destination.add(element);
-- 
GitLab