ApiDoc @Nonnull

This commit is contained in:
Volker Berlin 2021-03-27 16:37:30 +01:00
parent b755f6fd08
commit 4e2f35a073
2 changed files with 6 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
Copyright 2018 - 2020 Volker Berlin (i-net software)
Copyright 2018 - 2021 Volker Berlin (i-net software)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -43,7 +43,7 @@ class WasmLoadStoreInstruction extends WasmLocalInstruction {
* @param lineNumber
* the line number in the Java source code
*/
WasmLoadStoreInstruction( VariableOperator op, @Nonnegative int idx, LocaleVariableManager localVariables, int javaCodePos, int lineNumber ) {
WasmLoadStoreInstruction( @Nonnull VariableOperator op, @Nonnegative int idx, LocaleVariableManager localVariables, int javaCodePos, int lineNumber ) {
super( op, idx, localVariables, javaCodePos, lineNumber );
}

View File

@ -34,6 +34,7 @@ import static de.inetsoftware.jwebassembly.wasm.VariableOperator.*;
*/
class WasmLocalInstruction extends WasmInstruction {
@Nonnull
private VariableOperator op;
private int idx;
@ -54,7 +55,7 @@ class WasmLocalInstruction extends WasmInstruction {
* @param lineNumber
* the line number in the Java source code
*/
WasmLocalInstruction( VariableOperator op, @Nonnegative int idx, LocaleVariableManager localVariables, int javaCodePos, int lineNumber ) {
WasmLocalInstruction( @Nonnull VariableOperator op, @Nonnegative int idx, LocaleVariableManager localVariables, int javaCodePos, int lineNumber ) {
super( javaCodePos, lineNumber );
this.op = op;
this.idx = idx;
@ -74,6 +75,7 @@ class WasmLocalInstruction extends WasmInstruction {
*
* @return the operator
*/
@Nonnull
VariableOperator getOperator() {
return op;
}
@ -84,7 +86,7 @@ class WasmLocalInstruction extends WasmInstruction {
* @param op
* the operator
*/
void setOperator( VariableOperator op ) {
void setOperator( @Nonnull VariableOperator op ) {
this.op = op;
}