8343480: Remove unnecessary @SuppressWarnings annotations (javadoc)

Reviewed-by: hannesw
This commit is contained in:
Archie Cobbs 2024-11-05 15:48:02 +00:00
parent f95097cc64
commit fbf9b96b61
3 changed files with 2 additions and 4 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -367,7 +367,6 @@ public class TagletWriter {
return createAnchorAndSearchIndex(element, tagText, Text.of(tagText), desc, tree);
}
@SuppressWarnings("preview")
Content createAnchorAndSearchIndex(Element element, String tagText, Content tagContent, String desc, DocTree tree) {
Content result;
if (context.isFirstSentence && context.inSummary || context.inTags.contains(DocTree.Kind.INDEX)

View File

@ -678,7 +678,7 @@ public class Checker extends DocTreePathScanner<Void, Void> {
// <editor-fold defaultstate="collapsed" desc="HTML attributes">
@Override @DefinedBy(Api.COMPILER_TREE) @SuppressWarnings("fallthrough")
@Override @DefinedBy(Api.COMPILER_TREE)
public Void visitAttribute(AttributeTree tree, Void ignore) {
// for now, ensure we're in an HTML StartElementTree;
// in time, we might check uses of attributes in other tree nodes

View File

@ -336,7 +336,6 @@ public class Start {
/**
* Main program - external wrapper.
*/
@SuppressWarnings("deprecation")
Result begin(String... argv) {
// Preprocess @file arguments
List<String> allArgs;