remove not anymore needed cast
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1428121 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
040229a607
commit
fef0fdf2d4
|
@ -79,7 +79,7 @@ public class MemoryRole
|
||||||
throw new ClassCastException( "MemoryRole.addPermissions(memoryPermission) parameter must be instanceof "
|
throw new ClassCastException( "MemoryRole.addPermissions(memoryPermission) parameter must be instanceof "
|
||||||
+ MemoryPermission.class.getName() );
|
+ MemoryPermission.class.getName() );
|
||||||
}
|
}
|
||||||
getPermissions().add( ( (MemoryPermission) memoryPermission ) );
|
getPermissions().add( memoryPermission );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -169,7 +169,7 @@ public class MemoryRole
|
||||||
throw new ClassCastException( "MemoryRole.removePermissions(memoryPermission) parameter must be instanceof "
|
throw new ClassCastException( "MemoryRole.removePermissions(memoryPermission) parameter must be instanceof "
|
||||||
+ MemoryPermission.class.getName() );
|
+ MemoryPermission.class.getName() );
|
||||||
}
|
}
|
||||||
getPermissions().remove( ( (MemoryPermission) memoryPermission ) );
|
getPermissions().remove( memoryPermission );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue