add @Override

This commit is contained in:
Volker Berlin 2019-11-03 18:04:45 +01:00
parent ca9efce370
commit b47274e007
2 changed files with 4 additions and 2 deletions

View File

@ -20,9 +20,7 @@ import java.io.IOException;
import javax.annotation.Nonnull;
import de.inetsoftware.classparser.Member;
import de.inetsoftware.jwebassembly.wasm.AnyType;
import de.inetsoftware.jwebassembly.wasm.ValueType;
/**
* WasmInstruction for set and get global variables.
@ -70,6 +68,7 @@ class WasmGlobalInstruction extends WasmInstruction {
/**
* {@inheritDoc}
*/
@Override
public void writeTo( @Nonnull ModuleWriter writer ) throws IOException {
writer.writeGlobalAccess( load, name, type );
}
@ -77,6 +76,7 @@ class WasmGlobalInstruction extends WasmInstruction {
/**
* {@inheritDoc}
*/
@Override
AnyType getPushValueType() {
return load ? type : null;
}

View File

@ -96,6 +96,7 @@ class WasmLocalInstruction extends WasmInstruction {
/**
* {@inheritDoc}
*/
@Override
public void writeTo( @Nonnull ModuleWriter writer ) throws IOException {
int index = getIndex();
writer.writeLocal( op, index );
@ -104,6 +105,7 @@ class WasmLocalInstruction extends WasmInstruction {
/**
* {@inheritDoc}
*/
@Override
AnyType getPushValueType() {
return null;
}