heap pollution:check if possible to make final (IDEA-65920)

This commit is contained in:
anna
2011-03-14 17:00:01 +01:00
parent f95be40d78
commit 63bb62c7fa
5 changed files with 68 additions and 5 deletions

View File

@@ -0,0 +1,8 @@
// "Make final and annotate as @SafeVarargs" "true"
public class Test {
@SafeVarargs
public final <T> void m<caret>ain(T... args) {
}
}

View File

@@ -0,0 +1,5 @@
// "Make final and annotate as @SafeVarargs" "false"
public interface Test {
<T> void m<caret>ain(T... args);
}

View File

@@ -0,0 +1,5 @@
// "Make final and annotate as @SafeVarargs" "false"
public abstract class Test {
abstract <T> void m<caret>ain(T... args);
}

View File

@@ -0,0 +1,7 @@
// "Make final and annotate as @SafeVarargs" "true"
public class Test {
public <T> void m<caret>ain(T... args) {
}
}