mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-18 00:20:10 +00:00
GT3348 - a few more tweaks from review
This commit is contained in:
parent
cec9d954ed
commit
484de7a24e
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user