mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-30 16:47:43 +08:00
GP-6634 Consolidated refresh methods
This commit is contained in:
+6
-4
@@ -194,10 +194,12 @@ public class ObjectCacheTest extends AbstractGhidraHeadedIntegrationTest {
|
||||
}
|
||||
|
||||
@Override
|
||||
protected boolean refresh() {
|
||||
DBRecord refreshedRecord = database.get(record.getKey());
|
||||
if (refreshedRecord != null) {
|
||||
record = refreshedRecord;
|
||||
protected boolean refresh(DBRecord rec) {
|
||||
if (rec == null) {
|
||||
rec = database.get(record.getKey());
|
||||
}
|
||||
if (rec != null) {
|
||||
record = rec;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user