KT-697 Remove unnecessary NotNull annotation import from Kotlin code
This commit is contained in:
@@ -432,7 +432,9 @@ public class Converter {
|
||||
@NotNull
|
||||
private static List<Import> importsToImportList(@NotNull PsiImportStatementBase[] imports) {
|
||||
List<Import> result = new LinkedList<Import>();
|
||||
for (PsiImportStatementBase t : imports) result.add(importToImport(t));
|
||||
for (PsiImportStatementBase i : imports)
|
||||
if (!NOT_NULL_ANNOTATIONS.contains(importToImport(i).getName()))
|
||||
result.add(importToImport(i));
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,10 @@ import org.jetbrains.annotations.NotNull;
|
||||
public class Import extends Node {
|
||||
private final String myName;
|
||||
|
||||
public String getName() {
|
||||
return myName;
|
||||
}
|
||||
|
||||
public Import(String name) {
|
||||
myName = name;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
namespace test
|
||||
import org.jetbrains.annotations.NotNull
|
||||
public open class Test(str : String) {
|
||||
{
|
||||
$myStr = str
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
namespace org.jetbrains.jet.j2k
|
||||
import org.jetbrains.annotations.NotNull
|
||||
public open class Converter() {
|
||||
}
|
||||
@@ -1,5 +1,4 @@
|
||||
namespace org.jetbrains.jet.j2k.`in`
|
||||
import org.jetbrains.annotations.NotNull
|
||||
import org.jetbrains.annotations.Nullable
|
||||
public open class Converter() {
|
||||
}
|
||||
Reference in New Issue
Block a user