igvteam / igv

Integrative Genomics Viewer. Fast, efficient, scalable visualization tool for genomics data and annotations
https://igv.org
MIT License
646 stars 387 forks source link

Check preferences color cache #1399

Closed jrobinso closed 11 months ago

jrobinso commented 1 year ago

Intellij believes the key here is the wrong type, so might not be working poperly.

 public boolean getAntiAliasing() {

        if (userPreferences.containsKey(Constants.ENABLE_ANTIALISING) || !Globals.IS_LINUX) {
            return getAsBoolean(Constants.ENABLE_ANTIALISING);
        } else {
            // Linux with no explicit setting
    @@ -252,9 +253,9 @@ public boolean getAntiAliasing() {
    private void updateCaches(String key, String value) {
        key = key.trim();
        if (booleanCache.containsKey(key)) {
            booleanCache.put(key, Boolean.valueOf(value));
        }
        colorScaleCache.remove(key); //TODO color scale cache doesn't use key strings so something here is wrong.