mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-17 10:41:06 +01:00
fix/suppress compiler warnings
This commit is contained in:
@@ -34,8 +34,11 @@ package sonia.scm.cache;
|
||||
|
||||
//~--- non-JDK imports --------------------------------------------------------
|
||||
|
||||
import com.google.common.base.Charsets;
|
||||
import com.google.common.base.Function;
|
||||
import com.google.common.collect.Iterators;
|
||||
import com.google.common.io.ByteSource;
|
||||
import com.google.common.io.CharSource;
|
||||
import com.google.common.io.Files;
|
||||
import com.google.common.io.Resources;
|
||||
|
||||
@@ -168,7 +171,8 @@ public class CacheConfigurationTestLoader implements CacheConfigurationLoader
|
||||
|
||||
URL manual = getResource(manualConfiguration);
|
||||
|
||||
Files.copy(Resources.newInputStreamSupplier(manual), file);
|
||||
ByteSource source = Resources.asByteSource(manual);
|
||||
source.copyTo(Files.asByteSink(file));
|
||||
}
|
||||
catch (IOException ex)
|
||||
{
|
||||
|
||||
@@ -72,6 +72,7 @@ public class MultiParentClassLoaderTest
|
||||
classLoader = new MultiParentClassLoader(parent1, parent2);
|
||||
}
|
||||
|
||||
@SuppressWarnings("unchecked")
|
||||
@Test(expected = ClassNotFoundException.class)
|
||||
public void testClassNotFoundException() throws ClassNotFoundException
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user