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 Lock lock;
private String cachedName;
private long cachedNameModCount;
private volatile String cachedName;
private volatile long cachedNameModCount;
/**
* 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
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();
}