Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed locale changes by JDK 17 #63

Merged
merged 1 commit into from
Dec 20, 2024
Merged

fixed locale changes by JDK 17 #63

merged 1 commit into from
Dec 20, 2024

Conversation

yoikawa
Copy link
Contributor

@yoikawa yoikawa commented Dec 19, 2024

fixed LabelUtils#getFileNames(HumanLanguage, URL, String) that failed to load ji, iw, and in sub-directory in JDK 17.

Misc cleanup:

  • replaced hard tab character with spaces
  • removed unnecessary code:
    • redundant class specifier in diamond operator (<>)
    • static for enum
  • replace Java assert with real check (e.g. checkState or requireNonNull)
  • apply formatter for readability

*/
@Beta
@SuppressWarnings("rawtypes") // TODO Fix
public class IntHashMap<V> extends AbstractIntMap<V> implements Serializable {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove redundant. implements Serializable is defined in the super class


/**
* The english articles are distinguished by whether the next noun starts with a vowel
* sound or not (although the, unlike a/an is spelled the same).
*/
public static enum EnglishArticleForm implements ArticleForm {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static is not necessary for enum

@yoikawa yoikawa merged commit 54b79e8 into main Dec 20, 2024
4 checks passed
@yoikawa yoikawa deleted the jdk-17 branch December 20, 2024 05:17
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.

2 participants