<i18n dev> RFR: 8274806: Simplify equals() call on nullable variable and a constant in java.desktop
    Andrey Turbanov 
    github.com+741251+turbanoff at openjdk.java.net
       
    Wed Oct  6 06:52:22 UTC 2021
    
    
  
Flipping arguments of 'equals' method, allows simplifying boolean expressions: now we can remove redundant null check before.
-------------
Commit messages:
 - [PATCH] Simplify equals() call on nullable variable and a constant in java.desktop
 - [PATCH] Simplify equals() call on nullable variable and a constant
Changes: https://git.openjdk.java.net/jdk/pull/5794/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk&pr=5794&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8274806
  Stats: 17 lines in 11 files changed: 0 ins; 1 del; 16 mod
  Patch: https://git.openjdk.java.net/jdk/pull/5794.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk pull/5794/head:pull/5794
PR: https://git.openjdk.java.net/jdk/pull/5794
    
    
More information about the i18n-dev
mailing list