cheptsov / AdvancedExpressionFolding

https://plugins.jetbrains.com/plugin/9320?pr=idea
140 stars 30 forks source link

Treat first argument of static method call as `this` #126

Open iirekm opened 5 years ago

iirekm commented 5 years ago

So for example substringAfter(string, ".") becomes string.substringAfter(".") just like in Kotlin for example

lppedd commented 5 years ago

@iirekm that MUST be implemented somehow! Great idea

ciscorucinski commented 5 years ago

This should allow for using nullable annotations to create correct Kotlin-like types. However, if there is no annotation, then it should be converted to a nullable type by default when it is folded. That will allow developers to add the correct nullable annotations.