Commit ce87a89
committed
Replace Map and similar functions with their Java cousins
This didn't appear to be necessary because the Kotlin and Java versions of Map (for example) are designed to be compatible, but in certain cases their functions have the same erasure but not the same type (e.g. Map.getOrDefault(K, V) vs. Map.getOrDefault(Object, V).
These have different erasures which was leading to callable-binding inconsistencies.1 parent fa0bd03 commit ce87a89
3 files changed
Lines changed: 26 additions & 2 deletions
File tree
- java
- kotlin-extractor/src/main/kotlin
- ql/test/kotlin/library-tests/java-map-methods
Lines changed: 21 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
899 | 899 | | |
900 | 900 | | |
901 | 901 | | |
| 902 | + | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
902 | 918 | | |
903 | 919 | | |
904 | 920 | | |
905 | 921 | | |
906 | 922 | | |
907 | | - | |
| 923 | + | |
| 924 | + | |
908 | 925 | | |
909 | 926 | | |
910 | 927 | | |
911 | 928 | | |
912 | | - | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
913 | 932 | | |
914 | 933 | | |
915 | 934 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments