mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 18:51:10 +01:00
suppress unchecked warnings
This commit is contained in:
@@ -103,6 +103,7 @@ public abstract class CacheManagerTestBase<C extends Cache>
|
||||
* @throws InterruptedException
|
||||
*/
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testSameReferenceMultiThreaded()
|
||||
throws InterruptedException, ExecutionException
|
||||
{
|
||||
|
||||
@@ -57,6 +57,7 @@ public final class CacheTestUtil
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public static GuavaCacheManager createDefaultGuavaCacheManager()
|
||||
{
|
||||
GuavaCacheConfiguration config = new GuavaCacheConfiguration();
|
||||
|
||||
@@ -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");
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user