mirror of
https://github.com/i-net-software/JWebAssembly.git
synced 2025-03-25 07:27:52 +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 javax.annotation.Nonnull;
|
||||||
|
|
||||||
import de.inetsoftware.classparser.Member;
|
|
||||||
import de.inetsoftware.jwebassembly.wasm.AnyType;
|
import de.inetsoftware.jwebassembly.wasm.AnyType;
|
||||||
import de.inetsoftware.jwebassembly.wasm.ValueType;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* WasmInstruction for set and get global variables.
|
* WasmInstruction for set and get global variables.
|
||||||
@ -70,6 +68,7 @@ class WasmGlobalInstruction extends WasmInstruction {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void writeTo( @Nonnull ModuleWriter writer ) throws IOException {
|
public void writeTo( @Nonnull ModuleWriter writer ) throws IOException {
|
||||||
writer.writeGlobalAccess( load, name, type );
|
writer.writeGlobalAccess( load, name, type );
|
||||||
}
|
}
|
||||||
@ -77,6 +76,7 @@ class WasmGlobalInstruction extends WasmInstruction {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
AnyType getPushValueType() {
|
AnyType getPushValueType() {
|
||||||
return load ? type : null;
|
return load ? type : null;
|
||||||
}
|
}
|
||||||
|
@ -96,6 +96,7 @@ class WasmLocalInstruction extends WasmInstruction {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
public void writeTo( @Nonnull ModuleWriter writer ) throws IOException {
|
public void writeTo( @Nonnull ModuleWriter writer ) throws IOException {
|
||||||
int index = getIndex();
|
int index = getIndex();
|
||||||
writer.writeLocal( op, index );
|
writer.writeLocal( op, index );
|
||||||
@ -104,6 +105,7 @@ class WasmLocalInstruction extends WasmInstruction {
|
|||||||
/**
|
/**
|
||||||
* {@inheritDoc}
|
* {@inheritDoc}
|
||||||
*/
|
*/
|
||||||
|
@Override
|
||||||
AnyType getPushValueType() {
|
AnyType getPushValueType() {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user