Tagir Valeev
26437b1785
Unnecessary 'this' qualifier removed; some other warnings fixed
...
GitOrigin-RevId: bb4ab241211dbe4702d2db6b93213861c041d35d
2024-07-09 16:13:25 +00:00
Aleksey Dobrynin
c7d2022be3
[java, import-module] Improve feedback
...
IJ-CR-138322 IDEA-355529
GitOrigin-RevId: 46e71e26b9a939c15b7a411a546c5a56e1d7e587
2024-07-09 13:11:41 +00:00
Aleksey Dobrynin
96f16b8f98
[java, import-module] Refactor import statement hierarchy IDEA-353091
...
Extract a top-level abstraction PsiImportDeclaration
GitOrigin-RevId: 04182ba96998fd578723559d86aa5a54ec14de67
2024-07-09 09:18:12 +00:00
Mikhail Pyltsin
1ab7c19466
IJ-CR-138822 [java-highlighting] IDEA-355777 Support JEP 477: implicit imports
...
- fix comments
- fix cache's dependencies
GitOrigin-RevId: 643023b58f2e68578a4460011c93774f5e726329
2024-07-08 15:15:13 +00:00
Mikhail Pyltsin
ecff6e161b
IJ-CR-138822 [java-highlighting] IDEA-355777 Support JEP 477: implicit imports
...
- cache implicit static references
- extract ImplicitlyImportedStaticMember into a separate file
GitOrigin-RevId: 105a69ce72b4722f0d32d1d858c426e96b73f9c5
2024-07-05 13:55:46 +00:00
Tagir Valeev
6bb83bc8e5
[stubs] Reduce amount of raw types
...
GitOrigin-RevId: 169895a6ee3c98db193443dbb0ced98497221430
2024-07-04 21:05:23 +00:00
Mikhail Pyltsin
07178b990f
[java-highlighting] IDEA-355777 Support JEP 477: implicit imports
...
- support implicit import for java.io.IO
- reimplement implicit static imports
GitOrigin-RevId: 3e2650128d43b1cff40c21c0539869070c6094d0
2024-07-03 22:08:38 +00:00
Yann Cébron
4504284ed9
[various] plugin descriptors: suppress "Invalid extension point name" warnings
...
we can't change existing names in a backwards-compatible way
GitOrigin-RevId: 46f8980842d90dd1aae3ce5a9a32dfd4afc30735
2024-07-03 20:24:32 +00:00
Aleksey Dobrynin
52a80caa73
[java, import-module] parsing import module construction (JEP-476) IDEA-355529
...
GitOrigin-RevId: 83c9e28007a731565809143b33b3dbd96a4a3ae5
2024-07-01 17:43:18 +00:00
Aleksey Dobrynin
143efd3b0f
[java, import-module] parsing import module construction (JEP-476) IDEA-355529
...
GitOrigin-RevId: 3c5334343bf0fa0ec7bfa70674eb7dd08b16d35d
2024-06-29 19:33:22 +00:00
Bart van Helvert
0232d76e56
[java] Implement getName for implicit classes
...
GitOrigin-RevId: 069362cff5ebee9eaf5e75d566097a2deaed8e8f
2024-06-26 18:23:10 +00:00
Tagir Valeev
12ef12d02a
[java-psi] UnhandledExceptions: reuse findThisOrSuperCallInConstructor
...
It works correctly since STATEMENTS_BEFORE_SUPER feature
GitOrigin-RevId: 935a4074d97794232135345b6b8f57fd6465c0c3
2024-06-26 11:52:02 +00:00
Tagir Valeev
15bb3eb9f4
[java-incomplete-model] Support declared but unresolved exceptions
...
GitOrigin-RevId: 2e493f1820ce2e676708e191c0ff0b72b4ecaa59
2024-06-25 16:42:40 +00:00
Tagir Valeev
c93d4b68d2
[java-incomplete-model] Support unknown exceptions thrown from try block
...
GitOrigin-RevId: f968327e98f7f9804973c8ff9adf6366a5aec490
2024-06-25 13:54:11 +00:00
Tagir Valeev
acf8109a0f
[java-incomplete-model] Support 'var' declarations
...
GitOrigin-RevId: 1d35868639192661ad6d1f8bafbcbda188b547b2
2024-06-25 09:23:05 +00:00
Tagir Valeev
523c1c854a
[java-incomplete-model] Move IncompleteModelUtil to java-psi-impl
...
GitOrigin-RevId: 41d51684cd2c2f11cb955c05a13cc273fc99e5b5
2024-06-25 09:23:05 +00:00
Mikhail Pyltsin
5c719214e3
IJ-CR-137428 [java-completion] IDEA-355252 Don't suggest deconstruction with incorrect name
...
- use JavaCodeStyleManager
GitOrigin-RevId: 140a4b58a6d0f12a14219bd3f48091d61d187b0c
2024-06-24 14:54:59 +00:00
Tagir Valeev
b038d3db65
[java-inspections] NullableStuffInspectionBase: fix record constructor support
...
GitOrigin-RevId: defcd306c9f5a32c027cbc2105ac3224878de452
2024-06-21 17:47:17 +00:00
Mikhail Pyltsin
aec277cf21
IJ-CR-137428 [java-completion] IDEA-355252 Don't suggest deconstruction with incorrect name
...
- extend VariableNameGenerator
GitOrigin-RevId: b6c1455ff9e01ae898219410cba45a5c5c669703
2024-06-21 13:47:15 +00:00
Bas Leijdekkers
36aebe5484
Java: use JavaPsiStringTemplateUtil.isStrTemplate() (IJ-CR-136837)
...
GitOrigin-RevId: f92c09fcb88689d489cd794b96ee91b5e9895fe7
2024-06-21 09:13:06 +00:00
Mikhail Pyltsin
73bbc5d00d
[java-completion] IDEA-355252 Don't suggest deconstruction with incorrect name
...
GitOrigin-RevId: 9bdb1273f507054c479eaa86597eadaf4568a9dd
2024-06-20 17:53:33 +00:00
Louis Vignier
ab2b1e736f
[javadoc] Infer explicit super in getInheritDocSymbol
...
IJ-CR-137121
GitOrigin-RevId: 1c7849ad0cabf91c0d7f80e1385aba346503fca8
2024-06-20 17:46:18 +00:00
Louis Vignier
3c789ef125
[javadoc] Add JavaDoc for JavaPsiImplementationHelper#getInheritDocSymbol
...
IJ-CR-137121
GitOrigin-RevId: 4897e21998d587c00e51489c3ecb38001027ea1f
2024-06-20 17:46:18 +00:00
Tagir Valeev
853a2900f2
DefaultNotLastCaseInSwitch fixes
...
GitOrigin-RevId: ee0e7442caa4992f8953e12d62a834f544008ef4
2024-06-20 16:25:34 +00:00
Tagir Valeev
f3a9cdfdab
[java-psi] Static interface method accessible through inheritance should not shadow static import
...
Fixes IDEA-355152 Good code red when static import collides with static interface method from the hierarchy
GitOrigin-RevId: f6f68cc372928d98bb1f66f2c3ddfaaf63d69702
2024-06-19 15:08:14 +00:00
Bas Leijdekkers
b0b4e53ad2
Java: strip trailing whitespace from text-block string template end correctly (IDEA-354777)
...
GitOrigin-RevId: fa0266faeeaf63b04451b4f068550e22e2cdf8ee
2024-06-18 19:20:03 +00:00
Mikhail Pyltsin
4221b3e7bb
[java-parser] Fix unnecessary qualifiers for static fields for parsers
...
GitOrigin-RevId: 8e0e9b3351cfc9229137661c555e898194e53060
2024-06-14 18:09:14 +00:00
Louis Vignier
47d5d6da56
[javadoc] Add navigation for inheritDoc tags
...
#IDEA-89977 Fixed
GitOrigin-RevId: 74fc471426b82445abc49ce9b760e005f2130917
2024-06-14 08:36:16 +00:00
Tagir Valeev
267d56619e
[java-stubs] TypeInfo.innerDepth: take into account whether the type is static (IDEA-354780)
...
GitOrigin-RevId: 2f3e781bea91ab738db46507b050a267da51a9d1
2024-06-13 18:36:49 +00:00
Tagir Valeev
62f4255568
[java-psi] ClsJavaCodeReferenceElementImpl: fix when only nested types have annotations (part of IDEA-354780)
...
GitOrigin-RevId: 19837b975419604a655215ca8a51a7e49c42aa88
2024-06-13 18:36:43 +00:00
Tagir Valeev
09250f103d
[java-psi] ClsTypeAnnotationCollector: doc typo fixed
...
GitOrigin-RevId: 420bd32de1c78ae87ec3c4cd4cb6b684c87b3a0e
2024-06-13 18:36:38 +00:00
Tagir Valeev
7fe1b165a4
[java-psi] Do not resolve super() call to Object() constructor when superclass is not resolved
...
Needed for incomplete project model.
GitOrigin-RevId: 2acbba54f4fd50fb3261601f1cb66175d7f19da6
2024-06-07 16:43:12 +00:00
Tagir Valeev
a8788fa3b8
[java-highlighting] Do not try to resolve star-import if existing explicit import fails to resolve
...
Otherwise, wrong class may be resolved in incomplete project model
AnonymousHashCode.java changed, because java.lang.Object import was unresolved (no JDK configured) and we now refuse to resolve to same-package class if there's a suitable explicit import
beforeHierarchy.java/afterHierarchy.java changed, because the import was incorrect, and it prevented importing implicit java.lang.Exception
predicates2.java changed: incorrect import removed (now prevents importing java.lang.String)
MoveInnerProcessor changes: import refs should be rebound first; otherwise they disallow to rebind normal refs
SpringDataMongoDbQueryCompletionTest changed: erroneous import removed
GitOrigin-RevId: f380409c445306bb9b8aceb5fe4dce1351511283
2024-06-04 20:27:13 +00:00
Bas Leijdekkers
2b4e8631ef
[java] consider enum constants used in editor when valueOf() is called (IDEA-293797)
...
GitOrigin-RevId: 6a494c11f8e658f6bebef2f97623a0ab4801a672
2024-05-27 10:30:37 +00:00
Bas Leijdekkers
4e62efd5b3
[java] add proper toString() implementation
...
GitOrigin-RevId: fd03f94bbd8ffee2e8d66f7a3bc4abf27e022334
2024-05-24 20:34:32 +00:00
Bas Leijdekkers
36be8ea15b
[java] better fix to inferring diamond type to also support Scala (IJ-CR-134324)
...
GitOrigin-RevId: 4eaa4279c2c8fd1aad91f9b51528fecbbe81f4ff
2024-05-23 12:46:43 +00:00
Tagir Valeev
f23bd6e698
[java-analysis] PsiClassType.equals: cache wildcard capturing
...
Optimize partially IDEA-353780 Syntax Analysis hangs forever with complex use of Java generic parameters
GitOrigin-RevId: 8ef87b3ffafa1aa3996f39a69c4aebbaa4dc2197
2024-05-22 09:55:41 +00:00
Tagir Valeev
1189577111
[java-analysis] PsiSubstitutorImpl#PSI_EQUIVALENCE: inline areElementsEquivalent
...
Allow to get rid of some double checks, as we know that we are working with PsiTypeParameter specifically
Optimize partially IDEA-353780 Syntax Analysis hangs forever with complex use of Java generic parameters
GitOrigin-RevId: 9563e7f872230794a6db22002acfa2517a506c5c
2024-05-22 09:55:37 +00:00
Tagir Valeev
a9f114717a
[java-analysis] PsiSubstitutorImpl: simplify processClass; avoid map copying
...
Will likely be checked on other code paths
Optimize partially IDEA-353780 Syntax Analysis hangs forever with complex use of Java generic parameters
GitOrigin-RevId: 9fd543691289b5cd8d9d36827b69f49221dbfc61
2024-05-22 09:55:34 +00:00
Tagir Valeev
519acbe8ca
[java-analysis] JavaClassSupersImpl: remove ensureValidType check
...
Will likely be checked on other code paths
Optimize partially IDEA-353780 Syntax Analysis hangs forever with complex use of Java generic parameters
GitOrigin-RevId: f95a3161bfbc6f15c463852d40dbe20471d5b48a
2024-05-22 09:55:31 +00:00
Tagir Valeev
4dfb99a6b3
[java-analysis] JavaClassSupersImpl: avoid many intermediate substitutors
...
Optimize partially IDEA-353780 Syntax Analysis hangs forever with complex use of Java generic parameters
GitOrigin-RevId: e1d66fcd6839cebea580a068f2ac90f9692538bc
2024-05-22 09:55:28 +00:00
Tagir Valeev
3f46270d18
[java-analysis] PsiSubstitutor.hasRawSubstitution
...
Optimize partially IDEA-353780 Syntax Analysis hangs forever with complex use of Java generic parameters
GitOrigin-RevId: 3b6d77db8353c21e0d09c9c28d551c1edd6c5e1d
2024-05-22 09:55:24 +00:00
Mikhail Pyltsin
2ca5b2bcd4
[java-lombok] IDEA-352726 Augment class in dumb mode in Lombok
...
- support dumb mode
GitOrigin-RevId: 93a6325ee1fa6ef515c579aa09bec9eb290ed967
2024-05-21 11:54:54 +00:00
Tagir Valeev
a60bd8c4eb
[java-analysis] JavaPsiPatternUtil.getExposedPatternVariables: support switch guard
...
Fixes IDEA-353697 Instanceof pattern as nullchecks are suggested for removal
GitOrigin-RevId: b187d2dcc71ecac7ad68c696d0583741791c47eb
2024-05-21 10:55:03 +00:00
Mikhail Pyltsin
1b026e0b7f
IJ-CR-133924 [java-test] EA-1144109 Fix IndexNotReadyException for other languages
...
- new JvmLanguageDumbAware introduced
GitOrigin-RevId: 4bdd0195d5defd407e6d2804b528a79b018b50eb
2024-05-20 01:21:32 +00:00
Tagir Valeev
492642606c
[java-inspections] UnhandledExceptions: avoid resolve under overload check (IDEA-353666)
...
GitOrigin-RevId: 58f284295522f92e81fb876945725d27bf462b75
2024-05-17 15:52:27 +00:00
Tagir Valeev
8b83a30705
[java-inspections] RedundantThrowsDeclaration: do not report when method contains unresolved calls
...
Helps IDEA-353117 Error highlighting in incomplete project model
GitOrigin-RevId: ac7e3931d54ed2ac24c34adf074b8dd09dd7cda9
2024-05-16 17:49:36 +00:00
Tagir Valeev
a25d7951bd
[java-mrjar] Treat classes with the different multi-release version as equivalent
...
It looks like this is a better alternative for now. In particular because we don't know how to resolve a reference from a library class within the same library. The result depends on in context of which module we are doing this resolve, but in general we don't know from which module we started. Currently, we resolve to the same version as the original class, but this might be incorrect. If we consider different versions of a class as different classes, we have problems with code-insight features, as for example, return type of a method and its direct supermethod might be non-equivalent, if the method is declared in source file but a supermethod is declared in the library.
Fixes IDEA-353000 must either be declared abstract or implement abstract method
GitOrigin-RevId: 3fa59bc6c8510f8dc0bcab63ccf491b4ff90610a
2024-05-15 20:15:37 +00:00
Bas Leijdekkers
7b074a10b1
[java] don't skip type parameter extends when inferring diamond type reference to kotlin class (IDEA-352823)
...
GitOrigin-RevId: 26c97dc1440a5d7e43588be17b96b80b3554943b
2024-05-14 10:29:50 +00:00
Mikhail Pyltsin
2fdade319c
[groovy-test] IDEA-353402 Inappropriate support test frameworks for groovy in dumb-mode
...
GitOrigin-RevId: 270a3cb538b2e2ed6b97f61c8302de7d12f59b21
2024-05-13 18:35:17 +00:00