GP-0: Javadoc and windows path test fix

This commit is contained in:
Ryan Kurtz
2026-05-18 10:30:16 -04:00
parent f7ac2c4c06
commit 060722d891
5 changed files with 10 additions and 10 deletions
@@ -36,17 +36,17 @@ import ghidra.util.Msg;
* This allows users to reference function variables in comments without having to change the
* comment text when the variable is renamed. Users can enter the annotation using the variable's
* name:
* <pre>
* <pre>{@code
* {@variable local_8}
*
* or
*
* {@variable coolVariable SomeFunction}
* </pre>
* }</pre>
* The user annotation will be converted to use address information:
* <pre>
* <pre>{@code
* {@variable Stack[0xa] FUN_1234eaea}
* </pre>
* }</pre>
*/
public class VariableAnnotatedStringHandler implements AnnotatedStringHandler {
@@ -60,7 +60,7 @@ public class DataTypeArchiveIDTest extends AbstractGenericTest {
private Map<ResourceFile, String> getCurrentGdts() {
return Application.findFilesByExtensionInApplication(".gdt")
.stream()
.filter(f -> f.getAbsolutePath().contains("/data/typeinfo/"))
.filter(f -> f.getAbsolutePath().replace('\\', '/').contains("/data/typeinfo/"))
.collect(Collectors.toMap(Function.identity(), f -> getGdtUniversalId(f)));
}
@@ -80,7 +80,7 @@ public class DataTypeArchiveIDTest extends AbstractGenericTest {
}
private String getGdtRelativePath(ResourceFile gdtFile) {
String path = gdtFile.getAbsolutePath();
String path = gdtFile.getAbsolutePath().replace('\\', '/');
int ix = path.indexOf("/typeinfo/");
path = path.substring(ix + 1);
return path;
@@ -143,7 +143,7 @@ import ghidra.util.classfinder.ExtensionPoint;
* <p>
* Your Plugin can either directly implement the interface in your Plugin class:
* <pre>
* public class MyPlugin extends Plugin <b>implements MyService</b> {....}</code>
* public class MyPlugin extends Plugin <b>implements MyService</b> {....}
* </pre>
* <p>
* or it may delegate the handling of the service interface to another object during its
@@ -139,7 +139,7 @@ public class DbCache<T extends DbObject> {
* This form should be used in conjunction with record iterators to avoid unnecessary
* record query during a possible object refresh. To benefit from the record the cached
* object must implement the {@link DbObject#refresh(DBRecord)} method which by default
* ignores the record and simply calls {@link DbObject#refresh()}.
* ignores the record and simply calls {@link DbObject#refresh(DBRecord)}.
* <P>
* This method is similar to the get() method in that it can be called without the database
* lock. It will first check if the object is in the cache and definitely valid before
@@ -124,8 +124,8 @@ public abstract class DbObject {
* additional checks that might require a database lock. The idea is that if the cache
* modification hasn't changed, then we know the object is valid. If the modification count
* has changed then we may or may not be valid and stronger checks are needed which will require
* a lock. Subclasses should override {@link #refreshIfNeeded()}, {@link #refresh()} to do
* the more robust validation checking.
* a lock. Subclasses should override {@link #refreshIfNeeded()},
* {@link #refresh(DBRecord)} to do the more robust validation checking.
*
* @return true if this object is invalid and must be re-validated, else false if object state
* is currently valid which may include a deleted state.