mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-15 10:44:47 +01:00
add @Override
This commit is contained in:
parent
ca9efce370
commit
b47274e007
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user