Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0: Fixing javadoc errors

Ryan Kurtz529b17476400
diff --git a/Ghidra/Features/DataGraph/src/main/java/datagraph/data/graph/DegController.java b/Ghidra/Features/DataGraph/src/main/java/datagraph/data/graph/DegController.java
index 93050548b0..7278855a23 100644
--- a/Ghidra/Features/DataGraph/src/main/java/datagraph/data/graph/DegController.java
+++ b/Ghidra/Features/DataGraph/src/main/java/datagraph/data/graph/DegController.java
@@ -569,7 +569,7 @@ public class DegController implements DomainObjectListener {
toDelete.addAll(graph.getDescendants(other));
}
else {
- // else dgVertex is the descendent of the other vertx, so dgVertex and its
+ // else dgVertex is the descendent of the other vertex, so dgVertex and its
// descendants should be removed
toDelete.add(dgVertex);
toDelete.addAll(graph.getDescendants(dgVertex));
diff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DataTree.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DataTree.java
index 4aebd2fd41..c4cf844fab 100644
--- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DataTree.java
+++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DataTree.java
@@ -116,12 +116,12 @@ public class DataTree extends GTree {
* <ol>
* <li>{@link DomainFolderNode} - the node's domain folder will be returned</li>
* <li>{@link DomainFileNode} (folder-link content type) - the referenced folder within the node's
- * project will be returned under the following conditions, otherwise null will be returned:</li><br>
+ * project will be returned under the following conditions, otherwise null will be returned:
* <ul>
* <li>The file corresponds to a folder-link, and</li>
* <li>the folder-link ultimately refers to a domain folder within the same project
* (i.e., a URL-based link path is not used and link status is {@link LinkStatus#INTERNAL}).</li>
- * </ul>
+ * </ul></li>
* <li>{@link DomainFileNode} (normal file or file-link) - the node's parent folder will be
* returned.</li>
* </ol>
@@ -131,7 +131,6 @@ public class DataTree extends GTree {
* or {@link LinkStatus#EXTERNAL} in which case null will be returned.
* <P>
* A {@link LinkedDomainFolder} will always be resolved to its real folder which it corresponds to.
- * <P>
*
* @param node Data Tree Node to be evaluated for its real internal folder
* @return internal project folder which corresponds to the specified node.
diff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DomainFileNode.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DomainFileNode.java
index cfad87ce7f..80978f824b 100644
--- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DomainFileNode.java
+++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/main/datatree/DomainFileNode.java
@@ -195,8 +195,8 @@ public class DomainFileNode extends DataTreeNode {
}
/**
- * This method intended for test use only.
* {@return true if a pending refresh exists for this node}
+ * This method intended for test use only.
*/
public boolean hasPendingRefresh() {
return refreshCount.get() != 0;
diff --git a/Ghidra/Framework/Project/src/main/java/ghidra/framework/model/DomainFolder.java b/Ghidra/Framework/Project/src/main/java/ghidra/framework/model/DomainFolder.java
index 1196cabe2b..475a7dffa9 100644
--- a/Ghidra/Framework/Project/src/main/java/ghidra/framework/model/DomainFolder.java
+++ b/Ghidra/Framework/Project/src/main/java/ghidra/framework/model/DomainFolder.java
@@ -62,7 +62,7 @@ import ghidra.util.task.TaskMonitor;
* </pre>
* <P>
* Example #2, where we locate via a link file:
- * <pre>
+ * <pre>{@code
* DomainFile file = ...
* LinkFileInfo linkInfo = file.getLinkInfo();
* if (linkInfo != null && linkInfo.isFolderLink()) {
@@ -75,7 +75,7 @@ import ghidra.util.task.TaskMonitor;
* DomainFile[] files = linkedFolder.getFiles();
* }
* }
- * </pre>
+ * }</pre>
* <P>
* The utility method {@link ProjectDataUtils#descendantFiles(DomainFolder, DomainFileFilter)}
* may also come in handy to iterate over folder contents while restricting treatment of
@@ -141,26 +141,26 @@ public interface DomainFolder extends Comparable<DomainFolder> {
/**
* Returns true if the given folder is the same as this folder based on path
- * and underlying project/repository. Unlike the {@link #equals(Object)} check, this method
- * handles cases where the folder provided may correspond to another project instance
+ * and underlying project/repository. Unlike the {@link Object#equals(Object)} check, this
+ * method handles cases where the folder provided may correspond to another project instance
* which is considered the same as the project that this folder is contained within.
*
* @param folder the potential same or descendant folder to check
* @return true if the given folder is the same or a child of this folder or
- * one of its decendents.
+ * one of its descendants.
*/
public boolean isSame(DomainFolder folder);
/**
* Returns true if the given folder is the same or a child of this folder or
- * one of its decendents based on path and underlying project/repository. Unlike the
- * {@link #equals(Object)} check, this method
+ * one of its descendants based on path and underlying project/repository. Unlike the
+ * {@link Object#equals(Object)} check, this method
* handles cases where the folder provided may correspond to another project instance
* which is considered the same as the project that this folder is contained within.
*
* @param folder the potential same or descendant folder to check
* @return true if the given folder is the same or a child of this folder or
- * one of its decendents.
+ * one of its descendants.
*/
public boolean isSameOrAncestor(DomainFolder folder);