mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-07 05:09:37 +07:00
heap pollution:check if possible to make final (IDEA-65920)
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
// "Make final and annotate as @SafeVarargs" "true"
|
||||
public class Test {
|
||||
@SafeVarargs
|
||||
public final <T> void m<caret>ain(T... args) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Make final and annotate as @SafeVarargs" "false"
|
||||
public interface Test {
|
||||
<T> void m<caret>ain(T... args);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// "Make final and annotate as @SafeVarargs" "false"
|
||||
public abstract class Test {
|
||||
abstract <T> void m<caret>ain(T... args);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
// "Make final and annotate as @SafeVarargs" "true"
|
||||
public class Test {
|
||||
public <T> void m<caret>ain(T... args) {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user