mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
fix/suppress compiler warnings
This commit is contained in:
@@ -116,6 +116,7 @@ public final class I18nMessages
|
||||
*
|
||||
* @return instance of message class
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
public synchronized static <T> T get(Class<T> msgClass, Locale locale)
|
||||
{
|
||||
CacheKey ck = new CacheKey(locale, msgClass);
|
||||
|
||||
@@ -35,11 +35,6 @@ package sonia.scm.repository;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import com.google.common.collect.Maps;
|
||||
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import sonia.scm.HandlerEventType;
|
||||
import sonia.scm.event.ScmEventBus;
|
||||
import sonia.scm.util.AssertUtil;
|
||||
@@ -54,12 +49,6 @@ import sonia.scm.util.AssertUtil;
|
||||
public abstract class AbstractRepositoryManager implements RepositoryManager
|
||||
{
|
||||
|
||||
/** the logger for AbstractRepositoryManager */
|
||||
private static final Logger logger =
|
||||
LoggerFactory.getLogger(AbstractRepositoryManager.class);
|
||||
|
||||
//~--- methods --------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* Sends a {@link RepositoryHookEvent} to each registered
|
||||
* {@link RepositoryHook} and sends the {@link RepositoryHookEvent} to
|
||||
|
||||
@@ -59,6 +59,7 @@ public class ScmModuleTest
|
||||
*
|
||||
*/
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testUnmarshall()
|
||||
{
|
||||
URL resource = Resources.getResource("sonia/scm/plugin/module.xml");
|
||||
|
||||
Reference in New Issue
Block a user