-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix redundant explicit type warnings in JSON test output
Removed redundant explicit type warnings from multiple JSON test files. This cleanup ensures that the JSON outputs are free from unnecessary warnings, simplifying test result readability.
- Loading branch information
Showing
16 changed files
with
16 additions
and
16 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
2 changes: 1 addition & 1 deletion
2
src/test/resources/test-compile-output/js/KotlinByExampleSnippetsTests/01_dynamic/0.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
src/test/resources/test-compile-output/js/KotlinByExampleSnippetsTests/02_js_function/1.json
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
.../test-compile-output/jvm/kotlin-by-example/02_Set/8ec43b0c11c651c669571c359f1e9556.1.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":11,"ch":19},"end":{"line":11,"ch":25}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":12,"ch":26},"end":{"line":12,"ch":32}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>Issue uniqueDescr4 registered correctly.\nIssue uniqueDescr2 marked as duplicate and rejected.\n</outStream>"} | ||
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>Issue uniqueDescr4 registered correctly.\nIssue uniqueDescr2 marked as duplicate and rejected.\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...compile-output/jvm/kotlin-by-example/03_Variables/ff9d772244aab97db76d055793905ec6.1.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":4},"end":{"line":2,"ch":7}},"message":"The 'var' property is never written to, so it can be declared as 'val'.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":2,"ch":11},"end":{"line":2,"ch":17}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":4,"ch":8},"end":{"line":4,"ch":9}},"message":"Variable is unused.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":4,"ch":11},"end":{"line":4,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":5,"ch":8},"end":{"line":5,"ch":9}},"message":"Variable is unused.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>initial\n</outStream>"} | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":4},"end":{"line":2,"ch":7}},"message":"The 'var' property is never written to, so it can be declared as 'val'.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":4,"ch":8},"end":{"line":4,"ch":9}},"message":"Variable is unused.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":5,"ch":8},"end":{"line":5,"ch":9}},"message":"Variable is unused.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>initial\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...t-compile-output/jvm/kotlin-web-site/basic-syntax/5ec261721162729866abc1e8f7293ef4.9.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":11},"end":{"line":2,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>a = 1, b = 2, c = 3\n</outStream>"} | ||
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>a = 1, b = 2, c = 3\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...st-compile-output/jvm/kotlin-web-site/basic-types/be5678589cf16c80d1cda9c85d9a55d9.1.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":11},"end":{"line":2,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":6,"ch":11},"end":{"line":6,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":10,"ch":12},"end":{"line":10,"ch":36}},"message":"Identity equality for arguments of types 'kotlin.Int?' and 'kotlin.Int?' is prohibited.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":11,"ch":12},"end":{"line":11,"ch":36}},"message":"Identity equality for arguments of types 'kotlin.Int?' and 'kotlin.Int?' is prohibited.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nfalse\n</outStream>"} | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":10,"ch":12},"end":{"line":10,"ch":36}},"message":"Identity equality for arguments of types 'kotlin.Int?' and 'kotlin.Int?' is prohibited.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":11,"ch":12},"end":{"line":11,"ch":36}},"message":"Identity equality for arguments of types 'kotlin.Int?' and 'kotlin.Int?' is prohibited.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nfalse\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...st-compile-output/jvm/kotlin-web-site/basic-types/be5678589cf16c80d1cda9c85d9a55d9.2.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":11},"end":{"line":2,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\ntrue\n</outStream>"} | ||
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\ntrue\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...st-compile-output/jvm/kotlin-web-site/basic-types/be5678589cf16c80d1cda9c85d9a55d9.8.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":16},"end":{"line":2,"ch":23}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":3,"ch":17},"end":{"line":3,"ch":24}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":4,"ch":8},"end":{"line":4,"ch":16}},"message":"Variable is unused.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nfalse\nfalse\n</outStream>"} | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":4,"ch":8},"end":{"line":4,"ch":16}},"message":"Variable is unused.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nfalse\nfalse\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...st-compile-output/jvm/kotlin-web-site/basic-types/be5678589cf16c80d1cda9c85d9a55d9.9.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":15},"end":{"line":2,"ch":19}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>a\n\n\n\n</outStream>"} | ||
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>a\n\n\n\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
.../test-compile-output/jvm/kotlin-web-site/booleans/12bb120f56ea8aee70a72c46b1a1383f.1.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":16},"end":{"line":2,"ch":23}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":3,"ch":17},"end":{"line":3,"ch":24}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nfalse\nfalse\nnull\n</outStream>"} | ||
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nfalse\nfalse\nnull\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...est-compile-output/jvm/kotlin-web-site/characters/8de4516ae10b8b417425b7e50699400b.1.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":15},"end":{"line":2,"ch":19}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>a\n\n\n\n</outStream>"} | ||
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>a\n\n\n\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...utput/jvm/kotlin-web-site/kotlin-tour-basic-types/8d9f1ad7f4763df1c70051cd4e48a924.1.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":20},"end":{"line":2,"ch":22}},"message":"Initializer is redundant.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":7,"ch":14},"end":{"line":7,"ch":15}},"message":"Assignment can be replaced with operator assignment.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>10\n</outStream>"} | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":20},"end":{"line":2,"ch":22}},"message":"Initializer is redundant.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>10\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...utput/jvm/kotlin-web-site/kotlin-tour-basic-types/8d9f1ad7f4763df1c70051cd4e48a924.2.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":8,"ch":11},"end":{"line":8,"ch":17}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>3\nhello\n</outStream>"} | ||
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>3\nhello\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...s/test-compile-output/jvm/kotlin-web-site/numbers/f56d9449111795feee96b7f922b3320d.1.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":11},"end":{"line":2,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":6,"ch":11},"end":{"line":6,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":10,"ch":12},"end":{"line":10,"ch":36}},"message":"Identity equality for arguments of types 'kotlin.Int?' and 'kotlin.Int?' is prohibited.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":11,"ch":12},"end":{"line":11,"ch":36}},"message":"Identity equality for arguments of types 'kotlin.Int?' and 'kotlin.Int?' is prohibited.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nfalse\n</outStream>"} | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":10,"ch":12},"end":{"line":10,"ch":36}},"message":"Identity equality for arguments of types 'kotlin.Int?' and 'kotlin.Int?' is prohibited.","severity":"WARNING","className":"WARNING"},{"interval":{"start":{"line":11,"ch":12},"end":{"line":11,"ch":36}},"message":"Identity equality for arguments of types 'kotlin.Int?' and 'kotlin.Int?' is prohibited.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\nfalse\n</outStream>"} |
2 changes: 1 addition & 1 deletion
2
...s/test-compile-output/jvm/kotlin-web-site/numbers/f56d9449111795feee96b7f922b3320d.2.json
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 |
---|---|---|
@@ -1 +1 @@ | ||
{"errors":{"File.kt":[{"interval":{"start":{"line":2,"ch":11},"end":{"line":2,"ch":14}},"message":"Redundant explicit type.","severity":"WARNING","className":"WARNING"}]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\ntrue\n</outStream>"} | ||
{"errors":{"File.kt":[]},"exception":null,"jvmByteCode":null,"text":"<outStream>true\ntrue\n</outStream>"} |