File tree Expand file tree Collapse file tree 1 file changed +12
-12
lines changed
src/main/resources/META-INF/rewrite Expand file tree Collapse file tree 1 file changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -2799,6 +2799,18 @@ examples:
2799
2799
type : specs.openrewrite.org/v1beta/example
2800
2800
recipeName : org.openrewrite.staticanalysis.SimplifyBooleanExpression
2801
2801
examples :
2802
+ - description : ' '
2803
+ sources :
2804
+ - before : |
2805
+ fun getSymbol() : String? {
2806
+ return null
2807
+ }
2808
+ language: kotlin
2809
+ - before : |
2810
+ val isPositive = getSymbol().equals("+") == true
2811
+ after: |
2812
+ val isPositive = getSymbol().equals("+")
2813
+ language: kotlin
2802
2814
- description : ' '
2803
2815
sources :
2804
2816
- before : |
@@ -2818,18 +2830,6 @@ examples:
2818
2830
}
2819
2831
}
2820
2832
language: java
2821
- - description : ' '
2822
- sources :
2823
- - before : |
2824
- fun getSymbol() : String? {
2825
- return null
2826
- }
2827
- language: kotlin
2828
- - before : |
2829
- val isPositive = getSymbol().equals("+") == true
2830
- after: |
2831
- val isPositive = getSymbol().equals("+")
2832
- language: kotlin
2833
2833
---
2834
2834
type : specs.openrewrite.org/v1beta/example
2835
2835
recipeName : org.openrewrite.staticanalysis.SimplifyBooleanReturn
You can’t perform that action at this time.
0 commit comments