mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-15 09:46:16 +01:00
suppress unchecked warnings
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user