File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed
idea/testData/inspectionsLocal/branched
ifThenToSafeAccess/inspectionData Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 98
98
<problem_class severity =" INFO" attribute_key =" INFO_ATTRIBUTES" >If-Then foldable to '?:'</problem_class >
99
99
<description >If-Then foldable to '?:'</description >
100
100
</problem >
101
+ <problem >
102
+ <file >longLine.kt</file >
103
+ <line >8</line >
104
+ <module >light_idea_test_case</module >
105
+ <package >longLine</package >
106
+ <entry_point TYPE =" method" FQNAME =" longLine.LongLineKt void main()" />
107
+ <problem_class severity =" INFO" attribute_key =" INFO_ATTRIBUTES" >If-Then foldable to '?:'</problem_class >
108
+ <description >If-Then foldable to '?:'</description >
109
+ </problem >
101
110
</problems >
Original file line number Diff line number Diff line change 1
1
// PROBLEM: none
2
2
// WITH_RUNTIME
3
+ // DISABLE-ERRORS
3
4
fun main (args : Array <String >) {
4
5
val t: String? = " abc"
5
6
if (t != null < caret> ) t else throw KotlinNullPointerException ()
Original file line number Diff line number Diff line change 1
1
// PROBLEM: none
2
2
// WITH_RUNTIME
3
+ // DISABLE-ERRORS
3
4
fun main (args : Array <String >) {
4
5
val t: String? = " abc"
5
6
if (t == null < caret> ) throw NullPointerException () else t
Original file line number Diff line number Diff line change 145
145
<problem_class severity =" INFO" attribute_key =" INFO_ATTRIBUTES" >If-Then foldable to '?.'</problem_class >
146
146
<description >Foldable if-then</description >
147
147
</problem >
148
+ <problem >
149
+ <file >resultCall.kt</file >
150
+ <line >6</line >
151
+ <module >light_idea_test_case</module >
152
+ <package >resultCall</package >
153
+ <entry_point TYPE =" field" FQNAME =" resultCall.ResultCallKt result" />
154
+ <problem_class severity =" INFO" attribute_key =" INFO_ATTRIBUTES" >If-Then foldable to '?.'</problem_class >
155
+ <description >Foldable if-then</description >
156
+ </problem >
157
+ <problem >
158
+ <file >noStdResultInCallChain.kt</file >
159
+ <line >7</line >
160
+ <module >light_idea_test_case</module >
161
+ <package >noStdResultInCallChain</package >
162
+ <entry_point TYPE =" field" FQNAME =" noStdResultInCallChain.NoStdResultInCallChainKt result" />
163
+ <problem_class severity =" INFO" attribute_key =" INFO_ATTRIBUTES" >If-Then foldable to '?.'</problem_class >
164
+ <description >Foldable if-then</description >
165
+ </problem >
148
166
</problems >
You can’t perform that action at this time.
0 commit comments