-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Redundant qualifier name: don't report for EnumClass.values/EnumClass…
….valueOf #KT-34696 Fixed
- Loading branch information
1 parent
611c4fe
commit f747f85
Showing
4 changed files
with
50 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
idea/testData/inspectionsLocal/removeRedundantQualifierName/notApplicableEnumValueOf.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// PROBLEM: none | ||
// WITH_RUNTIME | ||
package packageName | ||
|
||
import packageName.MyEnum.* | ||
|
||
enum class MyEnum { | ||
A, B, C, D, E; | ||
} | ||
|
||
fun main() { | ||
<caret>MyEnum.valueOf("A") | ||
} |
14 changes: 14 additions & 0 deletions
14
idea/testData/inspectionsLocal/removeRedundantQualifierName/notApplicableEnumValues.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
// PROBLEM: none | ||
// WITH_RUNTIME | ||
package packageName | ||
|
||
import packageName.MyEnum.* | ||
|
||
enum class MyEnum { | ||
A, B, C, D, E; | ||
} | ||
|
||
fun main() { | ||
for (value in <caret>MyEnum.values()) { | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
idea/tests/org/jetbrains/kotlin/idea/inspections/LocalInspectionTestGenerated.java
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.