Restore -Xjsr305-annotations flag as a deprecated
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
-Xjsr305-annotations=enable
|
||||
$TESTDATA_DIR$/jsr305Usage.kt
|
||||
$TESTDATA_DIR$/jsr305
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
@@ -0,0 +1,6 @@
|
||||
warning: argument -Xjsr305-annotations is deprecated. Please use -Xjsr305 instead
|
||||
warning: option 'enable' for -Xjsr305 flag is deprecated. Please use 'strict' instead
|
||||
compiler/testData/cli/jvm/jsr305Usage.kt:2:11: error: null can not be a value of a non-null type String
|
||||
a.foo(null)
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
@@ -0,0 +1,5 @@
|
||||
-Xjsr305-annotations=ignore
|
||||
$TESTDATA_DIR$/jsr305Usage.kt
|
||||
$TESTDATA_DIR$/jsr305
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
@@ -0,0 +1,2 @@
|
||||
warning: argument -Xjsr305-annotations is deprecated. Please use -Xjsr305 instead
|
||||
OK
|
||||
@@ -0,0 +1,5 @@
|
||||
-Xjsr305-annotations=warn
|
||||
$TESTDATA_DIR$/jsr305Usage.kt
|
||||
$TESTDATA_DIR$/jsr305
|
||||
-d
|
||||
$TEMP_DIR$
|
||||
@@ -0,0 +1,5 @@
|
||||
warning: argument -Xjsr305-annotations is deprecated. Please use -Xjsr305 instead
|
||||
compiler/testData/cli/jvm/jsr305Usage.kt:2:11: warning: expected type does not accept nulls in Java, but the value may be null in Kotlin
|
||||
a.foo(null)
|
||||
^
|
||||
OK
|
||||
Reference in New Issue
Block a user