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 * 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. * the label will already be primary.
*/ */
public class SetLabelPrimaryCmd implements Command { public class SetLabelPrimaryCmd implements Command {
@ -52,6 +52,7 @@ public class SetLabelPrimaryCmd implements Command {
* *
* @see ghidra.framework.cmd.Command#applyTo(ghidra.framework.model.DomainObject) * @see ghidra.framework.cmd.Command#applyTo(ghidra.framework.model.DomainObject)
*/ */
@Override
public boolean applyTo(DomainObject obj) { public boolean applyTo(DomainObject obj) {
Program program = (Program) obj; Program program = (Program) obj;
st = program.getSymbolTable(); st = program.getSymbolTable();
@ -117,6 +118,7 @@ public class SetLabelPrimaryCmd implements Command {
/** /**
* @see ghidra.framework.cmd.Command#getStatusMsg() * @see ghidra.framework.cmd.Command#getStatusMsg()
*/ */
@Override
public String getStatusMsg() { public String getStatusMsg() {
return errorMsg; return errorMsg;
} }
@ -124,6 +126,7 @@ public class SetLabelPrimaryCmd implements Command {
/** /**
* @see ghidra.framework.cmd.Command#getName() * @see ghidra.framework.cmd.Command#getName()
*/ */
@Override
public String getName() { public String getName() {
return "Set Primary Label"; return "Set Primary Label";
} }

View file

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