This project is mirrored from https://gitee.com/mirrors/intellij-community.git. Pull mirroring failed .
Repository mirroring has been paused due to too many failed attempts. It can be resumed by a project maintainer.
Last successful update .
  1. 14 Apr, 2022 4 commits
    • Yan Zhulanow's avatar
      [kotlin] Update test data, reflect compiler changes on methods in enums · 84a5c052
      Yan Zhulanow authored
      (cherry picked from commit e83bdddde2dcc7aa2a92a3ff06bb9373e97cce31)
      
      GitOrigin-RevId: 4f85bab395471767901cc1d0e634cc27db37ddb9
      84a5c052
    • Yan Zhulanow's avatar
      [kotlin] Skip synthetic enum methods on creating Java enum from usage · 783696e3
      Yan Zhulanow authored
      Kotlin's "Create from Usage" firstly creates a Kotlin class containing required declarations, and converts it back to Java if the usage target is inside a Java class. The conversion, however, is performed in rather a brutal way, by converting a 'KtClass' to a light class, and them tuning the resulting class, so it looks similar. In particular, all existing methods ('psiClass.getMethods()') except constructors are trivially copied.
      
      This does not seem correct, as Kotlin's light classes might contain synthetic methods (including 'values()' and 'valueOf()' for enums and augments from 'PsiAugmentProvider'). This commit filters out only enum methods. Possibly, more filtering is needed to cover methods from Lombok support and other augment providers.
      
      This commit fixes the following tests:
      - QuickFixMultiFileTestGenerated$CreateFromUsage$CreateClass$TypeReference.testEnumJavaTypeReceiver
      - QuickFixMultiFileTestGenerated$CreateFromUsage$CreateClass$ReferenceExpression.testEnumByNestedJavaQualifier
      - QuickFixMultiFileTestGenerated$CreateFromUsage$CreateClass$ImportDirective.testEnumWithJavaQualifier
      
      (cherry picked from commit e50b3a8beef99073f117ed72bd313c6831633b8d)
      
      GitOrigin-RevId: 675ece5a19d6e8e19ba9a35b8ec387f7004cbde5
      783696e3
    • Yan Zhulanow's avatar
      [kotlin] Filter out synthetic enum methods in dumb light classes · 388af989
      Yan Zhulanow authored
      Synthetic enum methods are no more filtered in CLS stubs. It seems to be a cleaner and more correct approach, as enum methods are available in all present instances of 'PsiClass'. However, it requires to filter methods on stub usage in some cases. In particular, 'ownMethods()' should only return methods present in source code.
      
      (cherry picked from commit f7b66f16ff1655ecd16fa70583183ab5acbf7131)
      
      GitOrigin-RevId: 1ad139bcc1fb860f0615ca87306caa9a8d446027
      388af989
    • Dmitry Timofeev's avatar
      [kotlin] Use module settings for importing not null types · a4b86ba2
      Dmitry Timofeev authored
      If there is at least one Kotlin module whose configuration
      implies importing java type parameters with @NotNull annotation
      as definitely non-nullable types, this setting is propagated
      to the entire project.
      
      Corresponding language feature:
      `ProhibitUsingNullableTypeParameterAgainstNotNullAnnotated`
      
      ^KTIJ-20129 Fixed
      
      (cherry picked from commit f23b3085bef459a7ddc26b1ace81d80b059097bc)
      
      GitOrigin-RevId: c74680a1e07fc200e2626898943d920bea1bf2e3
      a4b86ba2
  2. 13 Apr, 2022 19 commits
  3. 12 Apr, 2022 2 commits
  4. 11 Apr, 2022 1 commit
    • Yan Zhulanow's avatar
      [kotlin] Support several Maven directories in KotlinPluginLayoutWhenRunFromSources · b25e9a9a
      Yan Zhulanow authored
      As 'kotlin-dist' and 'kotlin-jps-plugin-classpath' are stable in kt-master, unlike other compiler artifacts, they are located in different places. This commit adds logic supporting both stable+nightly and nightly+nightly (kt-branches other than 'kt-master') scenarios.
      
      (cherry picked from commit 412255c761ee55602957bff9f4ccb5a8f4a08e35)
      
      GitOrigin-RevId: 28db370fcaf7fd560aa5966bc9619c4039b0c280
      b25e9a9a
  5. 08 Apr, 2022 14 commits