Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Done
-
None
-
None
-
None
Description
The below API is read-only interface, but returning reference to the caller. This causing caller to modify the orderingPolicy entities. If required reference of ordering policy, caller can use LeagQueue#getOrderingPolicy()#getSchedulableEntities()
The returning object should be clone of orderingPolicy.getSchedulableEntities()
/** * Obtain (read-only) collection of active applications. */ public Collection<FiCaSchedulerApp> getApplications() { return orderingPolicy.getSchedulableEntities(); }