GT-2753: Formatted and certified

Pulled-from: Christian Blichmann <cblichmann@google.com>
This commit is contained in:
Dan 2019-04-12 10:42:19 -04:00
parent f23fcf81a9
commit 69ceac9316
3 changed files with 18 additions and 20 deletions

View File

@ -39,9 +39,7 @@ import ghidra.program.model.symbol.*;
import ghidra.program.model.util.AddressLabelInfo;
import ghidra.program.util.DefaultLanguageService;
import ghidra.program.util.GhidraProgramUtilities;
import ghidra.util.InvalidNameException;
import ghidra.util.MD5Utilities;
import ghidra.util.HashUtilities;
import ghidra.util.*;
import ghidra.util.exception.*;
import ghidra.util.task.TaskMonitor;
@ -112,8 +110,8 @@ public abstract class AbstractProgramLoader implements Loader {
return results;
}
List<Program> programs = loadProgram(provider, name, folder, loadSpec, options, messageLog,
consumer, monitor);
List<Program> programs =
loadProgram(provider, name, folder, loadSpec, options, messageLog, consumer, monitor);
boolean success = false;
try {

View File

@ -102,7 +102,7 @@ public interface Program extends DataTypeManagerDomainObject {
public SymbolTable getSymbolTable();
/**
* Returns the external manager.
*/
public ExternalManager getExternalManager();
@ -355,8 +355,8 @@ public interface Program extends DataTypeManagerDomainObject {
* This will never be thrown if commit is false.
* @throws IllegalStateException if the program state is not suitable for setting the image base.
*/
public void setImageBase(Address base, boolean commit) throws AddressOverflowException,
LockException, IllegalStateException;
public void setImageBase(Address base, boolean commit)
throws AddressOverflowException, LockException, IllegalStateException;
/**
* Restores the last committed image base.
@ -377,8 +377,8 @@ public interface Program extends DataTypeManagerDomainObject {
* @throws LockException if the program is shared and not checked out exclusively.
*/
public void setLanguage(Language language, CompilerSpecID compilerSpecID,
boolean forceRedisassembly, TaskMonitor monitor) throws IllegalStateException,
IncompatibleLanguageException, LockException;
boolean forceRedisassembly, TaskMonitor monitor)
throws IllegalStateException, IncompatibleLanguageException, LockException;
/**
* Returns the global namespace for this program

View File

@ -15,6 +15,10 @@
*/
package ghidra.program.model;
import java.io.File;
import java.io.IOException;
import java.util.*;
import ghidra.framework.model.*;
import ghidra.framework.options.Options;
import ghidra.framework.store.LockException;
@ -34,10 +38,6 @@ import ghidra.util.exception.CancelledException;
import ghidra.util.exception.DuplicateNameException;
import ghidra.util.task.TaskMonitor;
import java.io.File;
import java.io.IOException;
import java.util.*;
public class ProgramTestDouble implements Program {
@Override
@ -111,8 +111,8 @@ public class ProgramTestDouble implements Program {
}
@Override
public void saveToPackedFile(File outputFile, TaskMonitor monitor) throws IOException,
CancelledException {
public void saveToPackedFile(File outputFile, TaskMonitor monitor)
throws IOException, CancelledException {
throw new UnsupportedOperationException();
}
@ -517,8 +517,8 @@ public class ProgramTestDouble implements Program {
}
@Override
public void setImageBase(Address base, boolean commit) throws AddressOverflowException,
LockException, IllegalStateException {
public void setImageBase(Address base, boolean commit)
throws AddressOverflowException, LockException, IllegalStateException {
throw new UnsupportedOperationException();
}
@ -529,8 +529,8 @@ public class ProgramTestDouble implements Program {
@Override
public void setLanguage(Language language, CompilerSpecID compilerSpecID,
boolean forceRedisassembly, TaskMonitor monitor) throws IllegalStateException,
IncompatibleLanguageException, LockException {
boolean forceRedisassembly, TaskMonitor monitor)
throws IllegalStateException, IncompatibleLanguageException, LockException {
throw new UnsupportedOperationException();
}