GT3348 - a few more tweaks from review

This commit is contained in:
ghidravore 2019-11-25 18:50:31 -05:00
parent cec9d954ed
commit 484de7a24e

View file

@ -49,8 +49,8 @@ public abstract class SymbolDB extends DatabaseObject implements Symbol {
protected SymbolManager symbolMgr; protected SymbolManager symbolMgr;
protected Lock lock; protected Lock lock;
private String cachedName; private volatile String cachedName;
private long cachedNameModCount; private volatile long cachedNameModCount;
/** /**
* Creates a Symbol that is just a placeholder for use when trying to find symbols by using * Creates a Symbol that is just a placeholder for use when trying to find symbols by using
@ -84,11 +84,6 @@ public abstract class SymbolDB extends DatabaseObject implements Symbol {
@Override @Override
public String toString() { public String toString() {
// prefer cached name for speed; it may be stale; call getName() for current value
String temp = cachedName;
if (temp != null) {
return temp;
}
return getName(); return getName();
} }