Fix missing javadoc parameters, throw tags,...

This commit is contained in:
Jindra Petřík
2024-08-08 22:00:27 +02:00
parent cf06781fdf
commit acc5f94889
179 changed files with 1021 additions and 1477 deletions

View File

@@ -1190,7 +1190,7 @@ public abstract class Action implements GraphSourceItem {
*
* @param cnt Container
* @param variables Variables - map of variable names to variable items
* @return
* @return Variables
*/
private static HashMap<String, GraphTargetItem> prepareVariables(GraphSourceItemContainer cnt, HashMap<String, GraphTargetItem> variables) {
HashMap<String, GraphTargetItem> variables2 = new LinkedHashMap<>(variables);

View File

@@ -810,7 +810,7 @@ public class ActionListReader {
* @param visitedContainers Visited containers
* @param charset Charset
* @return Action
* @throws IOException
* @throws IOException On I/O error
*/
private static Action readActionListAtPos(List<DisassemblyListener> listeners, ConstantPool cpool,
SWFInputStream sis, Map<Long, Action> actions, Map<Long, Long> nextOffsets,
@@ -959,7 +959,7 @@ public class ActionListReader {
* @param indeterminate Indeterminate
* @param visitedContainers Visited containers
* @return True if constant pools were fixed, false otherwise
* @throws IOException
* @throws IOException On I/O error
*/
private static boolean fixConstantPools(List<DisassemblyListener> listeners, ConstantPool cpool,
List<Action> actions, Map<Integer, Action> actionMap,

View File

@@ -161,7 +161,7 @@ public class DisplayObject extends ActionScriptObject {
* Removes from display list.
*
* @param depth Depth.
* @return
* @return Object
*/
public Object removeFromDisplayList(int depth) {
return displayList.remove(depth);
@@ -171,7 +171,7 @@ public class DisplayObject extends ActionScriptObject {
* Gets from display list.
*
* @param depth Depth.
* @return
* @return Object
*/
public Object getFromDisplayList(int depth) {
return displayList.get(depth);

View File

@@ -193,7 +193,7 @@ public class ActionScript2ClassDetector {
*
* @param nobj Item
* @return Converted item
* @throws AssertException
* @throws AssertException If item is not NewMethod or NewObject
*/
private GraphTargetItem newToGetMember(GraphTargetItem nobj) throws AssertException {
if (nobj instanceof NewMethodActionItem) {
@@ -307,7 +307,7 @@ public class ActionScript2ClassDetector {
* @param item Item
* @param itemName Item name for exception
* @return String
* @throws AssertException
* @throws AssertException If item is not DirectValue or not string
*/
private String getAsString(GraphTargetItem item, String itemName) throws AssertException {
if (!(item instanceof DirectValueActionItem)) {

View File

@@ -275,7 +275,7 @@ public class FastActionList implements Collection<ActionItem> {
* @param actions Action list
* @param action Action
* @param actionItemMap Action item map
* @return
* @return Last actions
*/
private List<ActionItem> getContainerLastActions(ActionList actions, Action action, Map<Action, ActionItem> actionItemMap) {
GraphSourceItemContainer container = (GraphSourceItemContainer) action;

View File

@@ -44,7 +44,7 @@ public final class FastActionListIterator implements Iterator<ActionItem> {
/**
* Constructs a new FastActionListIterator.
*
* @param list
* @param list List
*/
FastActionListIterator(FastActionList list) {
item = list.first();
@@ -54,8 +54,8 @@ public final class FastActionListIterator implements Iterator<ActionItem> {
/**
* Constructs a new FastActionListIterator.
*
* @param list
* @param index
* @param list List
* @param index Index
*/
FastActionListIterator(FastActionList list, int index) {
item = list.first();

View File

@@ -39,7 +39,7 @@ public interface SetTypeActionItem {
/**
* Sets temp register.
* @param regIndex
* @param regIndex Temp register
*/
public void setTempRegister(int regIndex);

View File

@@ -41,7 +41,7 @@ public class StringLtActionItem extends BinaryOpItem implements Inverted {
* @param instruction Instruction
* @param lineStartIns Line start instruction
* @param leftSide Left side
* @param rightSide
* @param rightSide Right side
*/
public StringLtActionItem(GraphSourceItem instruction, GraphSourceItem lineStartIns, GraphTargetItem leftSide, GraphTargetItem rightSide) {
super(instruction, lineStartIns, PRECEDENCE_RELATIONAL, leftSide, rightSide, "lt", "String", "String");