undefect. CWE-407 — 63 sites patched across 27 ecosystems
Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com Patches, unit tests, benchmarks, whitepaper, and outreach briefs. Public domain — no copyright claimed. Use freely.
This commit is contained in:
commit
0a580b313d
70422 changed files with 17213626 additions and 0 deletions
29
test/langtools/tools/doclint/ProvidesTest.java
Normal file
29
test/langtools/tools/doclint/ProvidesTest.java
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
/*
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8160196
|
||||
* @summary Module summary page should display information based on "api" or "detail" mode.
|
||||
* @modules jdk.javadoc/jdk.javadoc.internal.doclint
|
||||
* @build DocLintTester
|
||||
* @run main DocLintTester -Xmsgs:all,-missing -ref ProvidesTest.out ProvidesTest.java
|
||||
*/
|
||||
|
||||
/**
|
||||
* Invalid use of provides in class documentation.
|
||||
*
|
||||
* @provides NotFound
|
||||
*/
|
||||
public class ProvidesTest {
|
||||
/**
|
||||
* Invalid use of provides in field documentation
|
||||
*
|
||||
* @provides NotFound Test description.
|
||||
*/
|
||||
public int invalid_param;
|
||||
|
||||
/**
|
||||
* Invalid use of provides in method documentation
|
||||
*
|
||||
* @provides NotFound Test description.
|
||||
*/
|
||||
public class InvalidParam { }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue