Skip to content

Commit

Permalink
Require override annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Aug 25, 2024
1 parent 59f94e2 commit 6802a14
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@
<arg>-XDcompilePolicy=simple</arg>
<arg>-Xplugin:ErrorProne \
-XepDisableAllChecks \
-Xep:MissingOverride:ERROR \
-XepExcludedPaths:.*/target/generated-(|test-)sources/.*</arg>
</compilerArgs>
<annotationProcessorPaths>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ public WasmFunctionHandle handle() {
return handle;
}

@Override
public String moduleName() {
return moduleName;
}

@Override
public String fieldName() {
return fieldName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,12 @@ public MutabilityType mutabilityType() {
return type;
}

@Override
public String moduleName() {
return moduleName;
}

@Override
public String fieldName() {
return fieldName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@ public HostMemory(String moduleName, String fieldName, Memory memory) {
this.memory = memory;
}

@Override
public String moduleName() {
return moduleName;
}

@Override
public String fieldName() {
return fieldName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,12 @@ public HostTable(String moduleName, String fieldName, Map<Integer, Integer> func
this.table.reset();
}

@Override
public String moduleName() {
return moduleName;
}

@Override
public String fieldName() {
return fieldName;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public int size() {
return this.stack.size();
}

@Override
public String toString() {
return this.stack.toString();
}
Expand Down

0 comments on commit 6802a14

Please sign in to comment.