Merge branch 'GP-0_ryanmkurtz_PR-4102_nneonneo_javadoc'

This commit is contained in:
Ryan Kurtz 2022-03-31 01:11:42 -04:00
commit e80c245cf2
17 changed files with 23 additions and 35 deletions

View File

@ -38,7 +38,7 @@ public class DwarfDecoderFactory {
/**
* Get the appropriate decoder for the given 8-bit mode; mode is parsed into
* decode format, application mode, and indirection flag.
* @see #getDecoder(DwarfEHDataDecodeFormat, DwarfEHDataApplicationMode, boolean)
* @see #createDecoder(DwarfEHDataDecodeFormat, DwarfEHDataApplicationMode, boolean)
* @param mode a byte that indicates an encoding
* @return the decoder for the indicated mode of encoding
*/

View File

@ -124,12 +124,12 @@ abstract class AbstractFrameSection implements CieSource {
* @throws MemoryAccessException if memory for the CIE couldn't be read
* @throws ExceptionHandlerFrameException if a problem was encountered
*/
protected Cie getCieOrCreateIfMissing(Address currAddress, boolean isInDebugFrame)
protected Cie getCieOrCreateIfMissing(Address curAddress, boolean isInDebugFrame)
throws MemoryAccessException, ExceptionHandlerFrameException {
Cie cie = cieMap.get(currAddress);
Cie cie = cieMap.get(curAddress);
if (cie == null) {
cie = createCie(currAddress, isInDebugFrame);
cieMap.put(currAddress, cie);
cie = createCie(curAddress, isInDebugFrame);
cieMap.put(curAddress, cie);
}
return cie;
}

View File

@ -1,6 +1,5 @@
/* ###
* IP: GHIDRA
* REVIEWED: YES
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@ -59,7 +58,7 @@ public class LSDAActionTable {
* Create an LSDA Action Table from the bytes at <code>address</code>.
* <br>Note: This method must get called before any of the "get..." methods.
* @param address the start (minimum address) of this action table.
* @param maxddress the end (maximum address) of this action table.
* @param maxAddress the end (maximum address) of this action table.
*/
public void create(Address address, Address maxAddress) {

View File

@ -36,9 +36,8 @@ public class FunctionMatchSet extends ArrayList<SubroutineMatch> {
private final SymbolTable bSymbolTable;
/**
* @param thisProgramName Name of this program (i.e. the program from
* which the matching was initiated.
* @param otherProgramName Name of the program being matched.
* @param aProgram The program from which the matching was initiated.
* @param bProgram The program being matched.
*/
public FunctionMatchSet(Program aProgram, Program bProgram) {
super();

View File

@ -44,9 +44,8 @@ public class SubroutineMatchSet extends ArrayList<SubroutineMatch> {
private final CodeBlockModel bModel;
/**
* @param thisProgramName Name of this program (i.e. the program from
* which the matching was initiated.
* @param otherProgramName Name of the program being matched.
* @param aProgram The program from which the matching was initiated.
* @param bProgram The program being matched.
*/
public SubroutineMatchSet(Program aProgram, CodeBlockModel aModel, Program bProgram,
CodeBlockModel bModel) {

View File

@ -926,7 +926,7 @@ public class DIEAggregate {
* This indicates an empty range, in which case the caller may want to take
* special steps to avoid issues with Ghidra ranges.
* <p>
* Only seen in extremely old gcc versions. Typically the low & high
* Only seen in extremely old gcc versions. Typically the low and high
* pc values are omitted if the CU is empty.
*
* @return boolean true if the LowPC and HighPC values are present and equal

View File

@ -48,7 +48,7 @@ public class DWARFLine {
* DebugLine stream (if present).
*
* @param diea {@link DIEAggregate} compile unit DIE(a)
* @return a new DWARFLine instance if DW_AT_stmt_list & stream are present, otherwise null
* @return a new DWARFLine instance if DW_AT_stmt_list and stream are present, otherwise null
* @throws IOException if error reading data
* @throws DWARFException if bad DWARF values
*/

View File

@ -74,7 +74,7 @@ abstract public class ElfRelocationHandler implements ExtensionPoint {
/**
* Determine if symbolAddr is contained within the EXTERNAL block. If so, relocationAddress will be marked
* with a <code<Unsupported EXTERNAL Data Elf Relocation</code> error bookmark.
* with a <code>Unsupported EXTERNAL Data Elf Relocation</code> error bookmark.
* NOTE: This method should only be invoked when the symbol offset will be adjust with a non-zero
* value (i.e., addend).
* @param program

View File

@ -35,7 +35,7 @@ public interface OverviewProvider {
* Sets the current program and associated address-index map
*
* @param program the program to use.
* @param addressIndexMap the address-index map to use.
* @param map the address-index map to use.
*/
void setProgram(Program program, AddressIndexMap map);

View File

@ -88,7 +88,7 @@ public class FileSystemService {
* null,
* "the_derived_file",
* -1,
* () -> new MySpecialtyInputstream(),
* () -&gt; new MySpecialtyInputstream(),
* monitor);</pre>
* <p>
* See {@link #produceDerivedStream()}.
@ -122,7 +122,7 @@ public class FileSystemService {
* null,
* "the_derived_file",
* -1,
* os -> FileUtilities.copyStream(my_input_stream, os),
* os -&gt; FileUtilities.copyStream(my_input_stream, os),
* monitor);</pre>
* <p>
* See {@link #push(OutputStream)}.

View File

@ -242,8 +242,7 @@ public class FileSystemFactoryMgr {
* if found, creates a new filesystem instance.
* <p>
*
* @param containerFSRL {@link FSRL} of the containing file.
* @param containerFile {@link File} the containing file.
* @param byteProvider container {@link ByteProvider}, will be owned by the new filesystem
* @param fsService reference to the {@link FileSystemService} instance.
* @param conflictResolver {@link FileSystemProbeConflictResolver conflict resolver} to
* use when more than one {@link GFileSystem} implementation can handle the specified

View File

@ -98,9 +98,6 @@ public class LocalFileChooserModel implements GhidraFileChooserModel {
return desktop.isDirectory() ? desktop : null;
}
/**
* @see ghidra.util.filechooser.GhidraFileChooserModel#getRoots()
*/
@Override
public File[] getRoots(boolean forceUpdate) {
if (roots.length == 0 || forceUpdate) {

View File

@ -527,8 +527,8 @@ public class TextFieldLinker {
* with the results of {@link #getText()} will have unexpected effects.
*
* @param field the field to link
* @param exp the separator following the field
* @param sep the separator that replaces {@code exp} when matched
* @param pat the regular expression to search for following the field
* @param sep the separator that replaces {@code pat} when matched
*/
public void linkField(JTextField field, Pattern pat, String sep) {
checkLast();

View File

@ -88,7 +88,7 @@ public abstract class VertexShape {
/**
* Returns the size factor for a shape relative to its label. Shapes are sized based on the
* label of a vertex so that the label can fit inside the shape (mostly). Some subclasses
* will need to override this value to some value > 1 to fit the label in the shape. For
* will need to override this value to some value &gt; 1 to fit the label in the shape. For
* example, a rectangle shape does not need to be extended because text naturally fits. But
* for a shape like a triangle, its bounding box needs to be bigger so that text doesn't
* "stick out" in the narrow part of the triangle.

View File

@ -157,7 +157,7 @@ public interface CompositeInternal extends Composite {
}
/**
* Dump composite and its components for use in {@link #toString()} representation.
* Dump composite and its components for use in {@link Object#toString()} representation.
* @param composite composite instance to be dumped
* @return formatted dump as string
*/
@ -174,7 +174,7 @@ public interface CompositeInternal extends Composite {
}
/**
* Dump all components for use in {@link #toString()} representation.
* Dump all components for use in {@link Object#toString()} representation.
*
* @param buffer string buffer
* @param pad padding to be used with each component output line

View File

@ -111,7 +111,7 @@ public abstract class DynamicDataType extends BuiltIn implements Dynamic {
/**
* Returns the first component containing the byte at the given offset.
* It is possible with zero-length components (see {@link DataTypeComponent#isZeroLength()})
* It is possible with zero-length components (see {@link DataType#isZeroLength()})
* and bitfields (see @DataTypeComponent#isBitFieldComponent()} for multiple components
* to share the same offset.
* @param offset the offset into the dataType

View File

@ -198,11 +198,6 @@ public interface Instruction extends CodeUnit, ProcessorContext {
* Get an array of PCode operations (micro code) that this instruction
* performs. NOTE: If includeOverrides is true, unique temporary varnodes
* may be produced which vary in size to those produced for other instructions.
* If your analysis is sensitive to this you should consider using
* {@link InstructionPrototype#getPcode(InstructionContext, PcodeOverride, UniqueAddressFactory)}
* instead with your own {@link UniqueAddressFactory} to prevent duplication within
* your scope of analysis.
* by this method may not be suitable for use with certain analysis
* @param includeOverrides if true any flow overrides will be factored
* into generated pcode.
* @return an array of Pcode operations,