Fixing a couple of comments.

This commit is contained in:
Ryan Kurtz 2019-04-25 13:15:39 -04:00
parent 344d3f6b35
commit 515aa0962c
2 changed files with 6 additions and 3 deletions

View File

@ -26,7 +26,7 @@ import ghidra.util.exception.InvalidInputException;
/**
* Command to make a label the primary label at an address. Only really
* makes sense if there is more that one label at the address - otherwise
* makes sense if there is more than one label at the address - otherwise
* the label will already be primary.
*/
public class SetLabelPrimaryCmd implements Command {
@ -52,6 +52,7 @@ public class SetLabelPrimaryCmd implements Command {
*
* @see ghidra.framework.cmd.Command#applyTo(ghidra.framework.model.DomainObject)
*/
@Override
public boolean applyTo(DomainObject obj) {
Program program = (Program) obj;
st = program.getSymbolTable();
@ -117,6 +118,7 @@ public class SetLabelPrimaryCmd implements Command {
/**
* @see ghidra.framework.cmd.Command#getStatusMsg()
*/
@Override
public String getStatusMsg() {
return errorMsg;
}
@ -124,6 +126,7 @@ public class SetLabelPrimaryCmd implements Command {
/**
* @see ghidra.framework.cmd.Command#getName()
*/
@Override
public String getName() {
return "Set Primary Label";
}

View File

@ -233,8 +233,8 @@ public interface Symbol {
public boolean isPrimary();
/**
* Sets this symbol to be primary. All other symbols
* at the same address will be set to !primary.
* Sets this symbol to be primary. All other symbols at the same address will be set to
* !primary. Only applies to non-function symbols.
* @return returns true if the symbol was not primary and now it is, otherwise false
*/
public boolean setPrimary();