mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 16:35:45 +01:00
suppress unchecked warnings
This commit is contained in:
@@ -538,9 +538,10 @@ public abstract class AbstractManagerResource<T extends ModelObject,
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
private Comparator<T> createComparator(String sortby, boolean desc)
|
||||
{
|
||||
Comparator comparator = null;
|
||||
Comparator comparator;
|
||||
|
||||
if (desc)
|
||||
{
|
||||
|
||||
@@ -355,6 +355,7 @@ public class AuthenticationResource
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
private ScmState createAnonymousState()
|
||||
{
|
||||
return createState(SCMContext.ANONYMOUS, Collections.EMPTY_LIST,
|
||||
@@ -371,6 +372,7 @@ public class AuthenticationResource
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@SuppressWarnings("unchecked")
|
||||
private ScmState createState(Subject subject)
|
||||
{
|
||||
PrincipalCollection collection = subject.getPrincipals();
|
||||
|
||||
Reference in New Issue
Block a user