Details
-
Improvement
-
Status: Patch Available
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
Description
There are several places to check if a group is the "default" group, where the input could be a String or a RSGroupInfo.
It is better to provide official functions in RSGroupInfo to tell if a group is the default group, so as to
- Simply the code
- Make it more safe. It is not safe as there is no null check like
if (!group.getName().equals(RSGroupInfo.DEFAULT_GROUP))
It is more safe to check like:
RSGroupInfo.DEFAULT_GROUP.equals(group.getName())