Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
Patch
Description
Lot's of places the fields are initialized to their default values, which is unnecessary verbose:
long value = 0L; String str = null;
which is equivalent with:
long value; String str;
And similarly the type specification can be omitted, as the compiler can calculate it automatically, so instead of
List<RangerPolicyConditionDef> conditions = new ArrayList<RangerServiceDef.RangerPolicyConditionDef>();
it is suffice to write:
List<RangerPolicyConditionDef> conditions = new ArrayList<>();