Skip to content

Commit fbf9b96

Browse files
committed
8343480: Remove unnecessary @SuppressWarnings annotations (javadoc)
Reviewed-by: hannesw
1 parent f95097c commit fbf9b96

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclets/formats/html/taglets/TagletWriter.java

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -367,7 +367,6 @@ public Content createAnchorAndSearchIndex(Element element, String tagText, Strin
367367
return createAnchorAndSearchIndex(element, tagText, Text.of(tagText), desc, tree);
368368
}
369369

370-
@SuppressWarnings("preview")
371370
Content createAnchorAndSearchIndex(Element element, String tagText, Content tagContent, String desc, DocTree tree) {
372371
Content result;
373372
if (context.isFirstSentence && context.inSummary || context.inTags.contains(DocTree.Kind.INDEX)

src/jdk.javadoc/share/classes/jdk/javadoc/internal/doclint/Checker.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -678,7 +678,7 @@ void warnIfEmpty(TagStackItem tsi, DocTree endTree) {
678678

679679
// <editor-fold defaultstate="collapsed" desc="HTML attributes">
680680

681-
@Override @DefinedBy(Api.COMPILER_TREE) @SuppressWarnings("fallthrough")
681+
@Override @DefinedBy(Api.COMPILER_TREE)
682682
public Void visitAttribute(AttributeTree tree, Void ignore) {
683683
// for now, ensure we're in an HTML StartElementTree;
684684
// in time, we might check uses of attributes in other tree nodes

src/jdk.javadoc/share/classes/jdk/javadoc/internal/tool/Start.java

-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ private void showLines(String message) {
336336
/**
337337
* Main program - external wrapper.
338338
*/
339-
@SuppressWarnings("deprecation")
340339
Result begin(String... argv) {
341340
// Preprocess @file arguments
342341
List<String> allArgs;

0 commit comments

Comments
 (0)