Skip to content

Conversation

@fedejeanne
Copy link
Member

This is a refactoring i.e. no functionality has been changed here.

Changes introduced:

  • Rename autoScaleMethodSetting to AUTO_SCALE_METHOD_SETTING
  • Declare it final i.e. turn it into a constant
  • Add the method AutoScaleMethod::forString for better readability
  • Use the method to get the desired method and default to AUTO if nothing (or some invalid value) was set in the system property
  • Set the value of autoScaleMethod based on the value of the constant instead of the system setting. If the constant was AUTO then the method is set to NEAREST

The field was already being used as a constant since it was being
initialized in a static block.
Also adapt the initialization of the field autoScaleMethod to use the
constant.
@github-actions
Copy link
Contributor

github-actions bot commented May 7, 2025

Test Results

   545 files  + 6     545 suites  +6   36m 27s ⏱️ -47s
 4 376 tests +37   4 358 ✅ +35   18 💤 +3  0 ❌  - 1 
16 643 runs  +37  16 502 ✅ +35  141 💤 +3  0 ❌  - 1 

Results for commit ae0f5cd. ± Comparison against base commit 0e0d38c.

@fedejeanne fedejeanne merged commit c6c4654 into eclipse-platform:master May 8, 2025
17 checks passed
@fedejeanne fedejeanne deleted the autoScaleMethodSetting_make_it_constant branch May 8, 2025 06:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant