EnumType.values()
.
Usually, when updating such an enum, you have to update the array as well. However, if you use EnumType.values()
instead, no modifications are required.
Example:
enum States {
NOT_RUN, IN_PROGRESS, FINISHED;
}
handleStates(new States[] {NOT_RUN, IN_PROGRESS, FINISHED});
After the quick-fix is applied:
handleStates(States.values());
New in 2019.1