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
21
test/langtools/tools/javac/lint/RequiresIdentityHelper.java
Normal file
21
test/langtools/tools/javac/lint/RequiresIdentityHelper.java
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
/* /nodynamiccopyright/ */
|
||||
|
||||
package java.lang;
|
||||
|
||||
public class RequiresIdentityHelper<@jdk.internal.RequiresIdentity T> {
|
||||
public RequiresIdentityHelper() {}
|
||||
public <@jdk.internal.RequiresIdentity TT> RequiresIdentityHelper(@jdk.internal.RequiresIdentity Object o) {}
|
||||
|
||||
class RequiresIdentity2<TT> {
|
||||
public RequiresIdentity2() {}
|
||||
public void foo(@jdk.internal.RequiresIdentity Object o) {}
|
||||
public void bar(@jdk.internal.RequiresIdentity Object... o) {}
|
||||
public void gg(@jdk.internal.RequiresIdentity TT ri) {}
|
||||
}
|
||||
|
||||
interface RequiresIdentityInt<@jdk.internal.RequiresIdentity T> {}
|
||||
|
||||
interface MyIntFunction<@jdk.internal.RequiresIdentity R> {
|
||||
R apply(int value);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue