Skip to content

Commit

Permalink
Bug 1650323 - Add suppress "unchecked" for a TreeBuilder method. DONT…
Browse files Browse the repository at this point in the history
…BUILD NPOTB r=alchen

In `nu.validator.htmlparser.impl.TreeBuilder`, this change adds
`@SuppressWarnings("unchecked")` to the `getUnusedStackNode()` method.

Differential Revision: https://phabricator.services.mozilla.com/D82149
  • Loading branch information
sideshowbarker committed Aug 3, 2020
1 parent 7a09391 commit 0793c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parser/html/javasrc/TreeBuilder.java
Expand Up @@ -4787,7 +4787,7 @@ void notifyUnusedStackNode(int idxInStackNodes) {
}
}

private StackNode<T> getUnusedStackNode() {
@SuppressWarnings("unchecked") private StackNode<T> getUnusedStackNode() {
// Search for an unused stack node.
while (stackNodesIdx < numStackNodes) {
if (stackNodes[stackNodesIdx].isUnused()) {
Expand Down

0 comments on commit 0793c41

Please sign in to comment.