mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 15:05:44 +01:00
suppress unchecked warnings
This commit is contained in:
@@ -81,6 +81,7 @@ public class GuavaCache<K, V> implements Cache<K, V>
|
||||
* @param configuration
|
||||
* @param name
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public GuavaCache(GuavaCacheConfiguration configuration, String name)
|
||||
{
|
||||
this(GuavaCaches.create(configuration, name),
|
||||
|
||||
@@ -125,6 +125,7 @@ public class GuavaCacheManager implements CacheManager
|
||||
* @return
|
||||
*/
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public synchronized <K, V> GuavaCache<K, V> getCache(String name)
|
||||
{
|
||||
logger.trace("try to retrieve cache {}", name);
|
||||
|
||||
@@ -79,6 +79,7 @@ public class GuavaCacheManagerConfiguration
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public List<GuavaNamedCacheConfiguration> getCaches()
|
||||
{
|
||||
if (caches == null)
|
||||
|
||||
Reference in New Issue
Block a user