suppress unchecked warnings

This commit is contained in:
Sebastian Sdorra
2014-01-11 15:17:44 +01:00
parent a99dfb31fc
commit 4745dd5575
49 changed files with 76 additions and 15 deletions

View File

@@ -103,6 +103,7 @@ public abstract class CacheManagerTestBase<C extends Cache>
* @throws InterruptedException
*/
@Test
@SuppressWarnings("unchecked")
public void testSameReferenceMultiThreaded()
throws InterruptedException, ExecutionException
{

View File

@@ -57,6 +57,7 @@ public final class CacheTestUtil
*
* @return
*/
@SuppressWarnings("unchecked")
public static GuavaCacheManager createDefaultGuavaCacheManager()
{
GuavaCacheConfiguration config = new GuavaCacheConfiguration();

View File

@@ -52,6 +52,7 @@ public class GuavaCacheCopyTest extends CacheCopyTestBase
* @return
*/
@Override
@SuppressWarnings("unchecked")
protected Cache<String, MutableObject> createCache(CopyStrategy strategy)
{
return new GuavaCache(CacheBuilder.newBuilder().build(), strategy, "ka");

View File

@@ -378,6 +378,7 @@ public class ScmRealmTest
* @param repositories
* @return
*/
@SuppressWarnings("unchecked")
private ScmRealm createRealm(User user,
Collection<String> authenticationGroups, Collection<Group> dbGroups,
Collection<Repository> repositories)