Skip to content

Commit

Permalink
GT-2753: Formatted and certified
Browse files Browse the repository at this point in the history
Pulled-from: Christian Blichmann <[email protected]>
  • Loading branch information
nsadeveloper789 committed Apr 12, 2019
1 parent f23fcf8 commit 69ceac9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,7 @@
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;

Expand Down Expand Up @@ -112,8 +110,8 @@ public final List<DomainObject> load(ByteProvider provider, String name, DomainF
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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public interface Program extends DataTypeManagerDomainObject {
public SymbolTable getSymbolTable();

/**
* Returns the external manager.
*/
public ExternalManager getExternalManager();
Expand Down Expand Up @@ -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.
Expand All @@ -377,8 +377,8 @@ public void setImageBase(Address base, boolean commit) throws AddressOverflowExc
* @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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -34,10 +38,6 @@
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
Expand Down Expand Up @@ -111,8 +111,8 @@ public void save(String comment, TaskMonitor monitor) throws IOException, Cancel
}

@Override
public void saveToPackedFile(File outputFile, TaskMonitor monitor) throws IOException,
CancelledException {
public void saveToPackedFile(File outputFile, TaskMonitor monitor)
throws IOException, CancelledException {
throw new UnsupportedOperationException();
}

Expand Down Expand Up @@ -517,8 +517,8 @@ public Address getImageBase() {
}

@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();
}

Expand All @@ -529,8 +529,8 @@ public void restoreImageBase() {

@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();
}

Expand Down

0 comments on commit 69ceac9

Please sign in to comment.