J2K: Detect @NotNull fields
This commit is contained in:
@@ -361,7 +361,7 @@ public class Converter {
|
||||
return new Field(
|
||||
new IdentifierImpl(field.getName()), // TODO
|
||||
modifiers,
|
||||
typeToType(field.getType()),
|
||||
typeToType(field.getType(), ConverterUtil.isAnnotatedAsNotNull(field.getModifierList())),
|
||||
createSureCallOnlyForChain(field.getInitializer(), field.getType()), // TODO: add modifiers
|
||||
countWritingAccesses(field, psiClass)
|
||||
);
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
package test
|
||||
public open class Test(str : String) {
|
||||
var myStr : String? = "String2"
|
||||
var myStr : String = "String2"
|
||||
public open fun sout(str : String) : Unit {
|
||||
System.out?.println(str)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user