diff --git a/parser/html/javasrc/TreeBuilder.java b/parser/html/javasrc/TreeBuilder.java
index 17dbc128102a..3ae86c800279 100644
--- a/parser/html/javasrc/TreeBuilder.java
+++ b/parser/html/javasrc/TreeBuilder.java
@@ -4787,7 +4787,7 @@ public abstract class TreeBuilder implements TokenHandler,
}
}
- private StackNode getUnusedStackNode() {
+ @SuppressWarnings("unchecked") private StackNode getUnusedStackNode() {
// Search for an unused stack node.
while (stackNodesIdx < numStackNodes) {
if (stackNodes[stackNodesIdx].isUnused()) {