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

Java language level syntactic sugaring #249

Merged

Commits on Jan 30, 2024

  1. Java language level syntactic sugaring

    Non-functional change - make use of new Java language features available up to Java 17 LTS
    
    - Use String.repeat()
    - Replace statements with enhanced switch
    - Use pattern variable
    - Convert to enhanced for-loop
    - Prefer StringBuilder over StringBuffer
    - Remove unnecessary boxing/unboxing
    - Use Objects.equals() rather than equals() expression
    - Replace explicit types by diamond operator
    - Use lambdas for anonymous types
    - Use Comparator combinator
    - Introduce method references for lambdas
    - Change statement to expression lambdas
    - Check for null using method call
    spannm committed Jan 30, 2024
    Configuration menu
    Copy the full SHA
    f5937d2 View commit details
    Browse the repository at this point in the history