mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GT3348 - a few more tweaks from review
This commit is contained in:
parent
cec9d954ed
commit
484de7a24e
1 changed files with 2 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue