fix/suppress compiler warnings

This commit is contained in:
Sebastian Sdorra
2014-08-19 21:45:23 +02:00
parent babd1be9fc
commit a8d9d8b9b6
13 changed files with 19 additions and 16 deletions

View File

@@ -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);

View File

@@ -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

View File

@@ -59,6 +59,7 @@ public class ScmModuleTest
*
*/
@Test
@SuppressWarnings("unchecked")
public void testUnmarshall()
{
URL resource = Resources.getResource("sonia/scm/plugin/module.xml");