recognize @NotNull

http://youtrack.jetbrains.com/issue/KT-129
This commit is contained in:
Stepan Koltsov
2012-02-20 22:37:06 +04:00
parent 2026be5464
commit a1d88a0877
14 changed files with 89 additions and 10 deletions
@@ -0,0 +1,8 @@
package test;
import org.jetbrains.annotations.NotNull;
class NotNullField {
@NotNull
public String hi;
}
@@ -0,0 +1,5 @@
package test;
open class NotNullField() {
var hi: String = "";
}
@@ -0,0 +1,6 @@
namespace test
open class test.NotNullField : jet.Any {
final /*constructor*/ fun <init>(): test.NotNullField
var hi: jet.String
}
@@ -0,0 +1,8 @@
package test;
import org.jetbrains.annotations.NotNull;
class NotNullMethod {
@NotNull
public String hi() { return ""; }
}
@@ -0,0 +1,5 @@
package test
open class NotNullMethod() {
open fun hi(): String = ""
}
@@ -0,0 +1,6 @@
namespace test
open class test.NotNullMethod : jet.Any {
final /*constructor*/ fun <init>(): test.NotNullMethod
open fun hi(): jet.String
}
@@ -0,0 +1,7 @@
package test;
import org.jetbrains.annotations.NotNull;
class NotNullParameter {
public void hi(@NotNull String param) { }
}
@@ -0,0 +1,5 @@
package test
open class NotNullParameter() {
open fun hi(p0: String): Unit { }
}
@@ -0,0 +1,6 @@
namespace test
open class test.NotNullParameter : jet.Any {
final /*constructor*/ fun <init>(): test.NotNullParameter
open fun hi(/*0*/ p0: jet.String): jet.Tuple0
}