suppress unchecked warnings

This commit is contained in:
Sebastian Sdorra
2014-01-11 15:17:44 +01:00
parent a99dfb31fc
commit 4745dd5575
49 changed files with 76 additions and 15 deletions

View File

@@ -175,6 +175,7 @@ public class JAXBDataStore<T> extends FileBasedStore<T> implements DataStore<T>
* @return
*/
@Override
@SuppressWarnings("unchecked")
protected T read(File file)
{
T item = null;
@@ -203,5 +204,5 @@ public class JAXBDataStore<T> extends FileBasedStore<T> implements DataStore<T>
private JAXBContext context;
/** Field description */
private KeyGenerator keyGenerator;
private final KeyGenerator keyGenerator;
}

View File

@@ -104,12 +104,10 @@ public class JAXBStore<T> extends AbstractStore<T>
* @return
*/
@Override
@SuppressWarnings("unchecked")
protected T readObject()
{
if (logger.isDebugEnabled())
{
logger.debug("load {} from store {}", type, configFile);
}
logger.debug("load {} from store {}", type, configFile);
T result = null;
@@ -140,7 +138,7 @@ public class JAXBStore<T> extends AbstractStore<T>
if (logger.isDebugEnabled())
{
logger.debug("store {} to {}", object.getClass().getName(),
configFile.getPath());
configFile.getPath());
}
try