Description
The CronExpressionEditor class currently maintains a private locale field and provides its own locale handling. However, since it extends CustomField which inherits from Component, it already has access to the inherited getLocale() method.
Proposed Change
Remove the private locale field and base CronExpressionDescriptor operations on the inherited getLocale() method instead.
Benefits
- Reduces code duplication
- Leverages Vaadin's built-in locale handling mechanism
- Maintains consistency with the framework's locale management approach
References