You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This particular utility code is not causing any problems but from a readability standpoint, it is much better to maintain a mapping rather than so many if-else conditions in normalizeOs
Describe the solution you'd like
A mapping can be maintained instead
Describe alternatives you've considered
Switch case is another alternative but mapping is better
The text was updated successfully, but these errors were encountered:
@akshayvenkatesan Quick question, how do you plan to refactor String.startsWith with switch? I thought Java 14+ could do case String s when s.startsWith("aix") -> { but it would elevate the minimum required Java version.
Is your feature request related to a problem? Please describe.
This particular utility code is not causing any problems but from a readability standpoint, it is much better to maintain a mapping rather than so many if-else conditions in normalizeOs
Describe the solution you'd like
A mapping can be maintained instead
Describe alternatives you've considered
Switch case is another alternative but mapping is better
The text was updated successfully, but these errors were encountered: