'Why does common-pool2 using abandonedConfig have to do it like this: `final AbandonedConfig ac = this.abandonedConfig`?

I read the source code in apache/commons-pool tonight and I found every time when reading the abandonedConfig, the code always is written like this:

 final AbandonedConfig ac = this.abandonedConfig;
        if (ac != null && ac.getRemoveAbandonedOnBorrow() && (getNumIdle() < 2) &&
                (getNumActive() > getMaxTotal() - 3)) {
            removeAbandoned(ac);
        }

Please tell me why they do that? Why not do something like:

if (abandonedConfig != null && abandonedConfig.getRemoveAbandonedOnBorrow() && (getNumIdle() < 2) &&
                    (getNumActive() > getMaxTotal() - 3)) {
                removeAbandoned(ac);
            }


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source