Alexandr Suhinin
79653f2633
CR-101244 clean up: remove redundant overriding methods
...
GitOrigin-RevId: d4d165c6280b7bead925940c82b20f5300c7750a
2024-01-20 15:47:17 +00:00
Alexandr Suhinin
8173ab4d26
IDEA-343082 method identical to super: ignore ambiguous super methods
...
GitOrigin-RevId: a4efce1e72a25674613284cd754a714a6baba8de
2024-01-20 14:34:54 +00:00
Alexandr Suhinin
5ff001d911
IDEA-343082 method identical to super: check type parameters
...
GitOrigin-RevId: 7f1e40061f0445e66fe80de326451ffeeb282af4
2024-01-20 14:34:49 +00:00
Tagir Valeev
2387145bcc
[java-completion] Fix and enable GuessManagerImpl for castvar
...
Improves IDEA-339251 IDEA: make Postfix templates dumb aware
GitOrigin-RevId: c5e2a09d06a3cf7b2adf747ee8671c143d228b91
2024-01-19 11:20:30 +00:00
Tagir Valeev
d01d523de1
[java-inspections] Unreachable code inspection (IDEA-342966)
...
GitOrigin-RevId: 4bcbf2d43bddca5ded941c2b1497715ff977ca0b
2024-01-19 11:20:26 +00:00
Tagir Valeev
83a598072a
[java-dfa] Pull up reachability tracking to the common DFA code from debugger
...
Preparation for IDEA-342966
GitOrigin-RevId: c0440077e9a27333613b5229e099b387288763ce
2024-01-18 20:31:57 +00:00
Yuriy Artamonov
fafc253bcb
[spring] IDEA-336117 Java: do not show inferred nullability annotations for Spring MVC method arguments
...
GitOrigin-RevId: 160099ad62c8c4ac9025af6a5678c9a600f791f8
2024-01-17 20:18:30 +00:00
Bas Leijdekkers
d3a1db4869
Java: DeclarationSearchUtils cleanup
...
GitOrigin-RevId: 87bf12db2cf4edf3e1398918603768cdfe79d099
2024-01-16 16:21:41 +00:00
Bas Leijdekkers
756c5baaa0
Java: small simplification in Generate
...
GitOrigin-RevId: dd5768329c3e361d0912184922cd38332681f29d
2024-01-16 16:21:24 +00:00
Mikhail Pyltsin
4085dad9bb
[java-inspections] IDEA-343139 StaticAccessViaInstanceForImplicitClasses produces errors for implicitly declared classes
...
- allow such access
GitOrigin-RevId: 2deafb0f6fb0be420a33174ccc2265103a0ce183
2024-01-16 14:03:15 +00:00
Tagir Valeev
84aa8be87d
[java-analysis] ExpressionUtils#resolveExpression: use getVariableReferences() instead search
...
Search is more heavy-weight and requires progress. It cannot be used inside getPresentation(), but it's used in UnrollLoopAction.
Fixes IDEA-342709 Error in logs during commenting lines in editor via `Cmd+/`
GitOrigin-RevId: 6704f6aafcc95310239f09f76dd7eb0685a82f5e
2024-01-16 12:53:10 +00:00
Tagir Valeev
4576566eee
Use getFileDocument() more
...
GitOrigin-RevId: e856902df0019e5aa1c61709c62f1cf4c89694b4
2024-01-15 16:29:01 +00:00
Tagir Valeev
fc3e5df389
[java-completion] IDEA-339251 IDEA: make Postfix templates dumb aware
...
GitOrigin-RevId: 082102197a4a06457685b5d6cd94e7296e51d8db
2024-01-12 18:46:51 +00:00
Mikhail Pyltsin
82ae6a7e59
[java-completion] IDEA-342465 support correctness for completion
...
GitOrigin-RevId: e7d3dd5c9afec757fe2fcfb40499f7f174778264
2024-01-12 17:41:48 +00:00
Alexandr Suhinin
c8b5041170
[highlighting] IDEA-342676 enable name decorations inside injected code fragments
...
GitOrigin-RevId: b7ad3563f7fe9725760b21938fa38f52b540ed34
2024-01-10 17:45:58 +00:00
Bas Leijdekkers
04ee289bc9
Java: "insert ';'" quick fix for local variables and fields (IDEA-330590)
...
and skip JavaErrorQuickFixProvider for non-Java elements
GitOrigin-RevId: 2fb2b6321c1a087d53bf52509f1513859ac4faf8
2024-01-10 16:09:01 +00:00
Bas Leijdekkers
3e0ed000da
Java: sensibly parse non-sealed modifier on local class and provide better error message (IDEA-342500)
...
GitOrigin-RevId: 574a5d9c31e5823127227622adaefaaea224b247
2024-01-10 16:08:52 +00:00
Tagir Valeev
8bde40c26a
[java-dfa] IDEA-341808 <T extends @Nullable Object> should not always be treated as nullable.
...
GitOrigin-RevId: 4098d3ed009b5aa06a453b1870ac4604fecd02e0
2024-01-10 13:55:22 +00:00
Bas Leijdekkers
ab928055bb
Java: better error reporting and quick fixes for the diamond operator and generic array creation (IDEA-299195)
...
GitOrigin-RevId: baa354ad9132bf6d939f19ecd2cfd6cfc56466a2
2024-01-08 17:34:42 +00:00
Alexandr Suhinin
386f5e9ad2
IDEA-335907 [highlighting] highlight unresolved annotations
...
GitOrigin-RevId: f23313adc278a5c84363cc938c1a25b9d2270ddf
2024-01-08 12:53:05 +00:00
Bas Leijdekkers
551728bdca
Java: report local class accessed from another switch branch (IDEA-113520)
...
GitOrigin-RevId: 7a467fc0cda90dc1944185e83607d8a7d2579cf4
2024-01-07 11:21:02 +00:00
Bas Leijdekkers
e7ee84d0ca
Java: correctly check if class is inner class according to the JLS (IDEA-336426)
...
and clarify error message
GitOrigin-RevId: 4614ced685521a06fee1bb681001e1484f9dca7d
2024-01-05 11:51:41 +00:00
Bas Leijdekkers
6feb5f4628
Java: don't suggest 'final' modifier in error message for interfaces (IDEA-336055)
...
GitOrigin-RevId: 6023a90b7e15a4154ca030f7cfc175bb1a3d21c7
2024-01-04 11:32:25 +00:00
Mikhail Pyltsin
0df89a1b62
[java-inspections] IDEA-341640 Mark main(String[] args) parameter as unused with implicit classes
...
GitOrigin-RevId: 08ca1f5ed4f48439b394f7fd313f2b95d50c48e7
2024-01-04 10:15:11 +00:00
Bas Leijdekkers
bee5c5dacd
Java: Improve error message on accessing static field from enum initializer (IDEA-342001)
...
GitOrigin-RevId: 533518be63dded4577e70a4ecbd747203d136689
2024-01-01 18:09:31 +00:00
Bas Leijdekkers
b156a18110
Java: statements before super() part III - highlight illegal this access before super() call (IDEA-340403)
...
GitOrigin-RevId: 96f15a88940eabe10c7d907c203f7b58dfbc00c7
2023-12-31 20:00:47 +00:00
Bart van Helvert
271d362d14
[junit] Move Java JUnit inspections into JUnit plugin
...
#IDEA-341929 Fixed
GitOrigin-RevId: 7dd42203f64380382b3d39c77a409fe652b09941
2023-12-28 23:17:28 +00:00
Bas Leijdekkers
488935ecea
Java: wording "anonymous inner class" -> "anonymous class"
...
GitOrigin-RevId: f03d7227721f41dc64a19c647762580b6eb9f159
2023-12-28 17:40:19 +00:00
Bas Leijdekkers
06bfde0897
Java: enable "Anonymous class can be replaced with inner class" inspection by default at information level (IDEA-341832)
...
GitOrigin-RevId: 4d5616004282fba912228d4afd082dfd0aeb92eb
2023-12-28 17:40:15 +00:00
Bas Leijdekkers
db953d1a59
Java: add quick-fix to "Local class" inspection and enable by default at information level (IDEA-341832)
...
GitOrigin-RevId: 57c018ee9e1c55031957d06b417cc0e192c83c9b
2023-12-28 17:40:06 +00:00
Bas Leijdekkers
2636eb83b0
Java: statements before super() part II - report return before explicit constructor call (IDEA-340403)
...
GitOrigin-RevId: 8d9ad8ec48b2eff6af3b582dfb935ece24041299
2023-12-28 17:39:22 +00:00
Bas Leijdekkers
176a8e0bec
Java: statements before super() part I (IDEA-340403)
...
GitOrigin-RevId: 7307a469267746ed3432acd1e73c894ccc87a254
2023-12-28 17:39:19 +00:00
Bas Leijdekkers
7b6abd34f3
Java: fix error message for extending final local class (IDEA-339271)
...
GitOrigin-RevId: 1f2089774edbe1a166658eee846362988ef53217
2023-12-28 17:39:16 +00:00
Bas Leijdekkers
6b0ded8130
Java: improve error message on return statement with value in constructor (IDEA-341462)
...
GitOrigin-RevId: bfccfa5f988469dc67df16e441f3d6f882853149
2023-12-28 17:39:12 +00:00
Tagir Valeev
f2a14c254d
[java-dfa] DataFlowInstructionVisitor: avoid checking whether every expression is physical in production
...
GitOrigin-RevId: 4f7b5fa7795627c50fb873b455aba3d34c868e6c
2023-12-21 12:13:03 +00:00
Tagir Valeev
ba99685bf5
[java] Minor cleanup in multi-release JAR support
...
GitOrigin-RevId: 0ebe25242ef514ba1025d8e7eb63ca6955c1defb
2023-12-20 12:47:21 +00:00
Mikhail Pyltsin
39b2be10ff
[java-highlighting] IDEA-341371 highlight duplicated classes with implicit classes
...
GitOrigin-RevId: 37e436871498d0c9470f164daaf2edb892082667
2023-12-19 19:44:19 +00:00
Tagir Valeev
c74bfa2e57
[java] IDEA-341317 Navigation into multi-release JARs
...
GitOrigin-RevId: 43612b6950fca72ab58af9b1eb5dc4940f90c501
2023-12-19 16:48:57 +00:00
Mikhail Pyltsin
fab280de6b
[java-refactoring] IJ-CR-122503 IDEA-340596 Unable to rename file with implicit class
...
- check identifier
GitOrigin-RevId: 143e8d34a9eae594133c3f9ff66b18affa60ed53
2023-12-19 13:34:28 +00:00
Bas Leijdekkers
050d6acb4e
Java: fix bad code is green problem 2 (IDEA-341259)
...
GitOrigin-RevId: 8368695f64baaccc7d6fab60a6e1b23f7c4490f2
2023-12-19 12:59:17 +00:00
Bas Leijdekkers
6c726f0ad3
Java: fix bad code is green problem 1 (IDEA-341259)
...
GitOrigin-RevId: 12f9b9882c0996d60b83604da5797f4b6b1eb012
2023-12-19 12:59:13 +00:00
Mikhail Pyltsin
b1f90d405a
[java-inspection] EA-941439 incorrect behavior for Java8MapApiInspection when a map is reused
...
GitOrigin-RevId: 0ac91b181c4dc245fa839ee3ccb2b0ba501c90bd
2023-12-18 20:57:23 +00:00
Andrey Cherkasov
6e95446bec
[java] The 'Make class final' quick-fix must check final methods
...
...and remove their 'final' modifier. Since final classes cannot be inherited, marking a method as final is unnecessary and confusing.
^IDEA-309065
GitOrigin-RevId: de044d57c690772aefc7044d87159c42ebc92907
2023-12-18 20:25:02 +00:00
Bart van Helvert
e78df2a5a6
[java] Use getParameterForArgument in AnnotationContext#getParameter
...
Removes some duplicate code.
GitOrigin-RevId: 9a02da06ce8692bc586eed393bfa66a21b9c0789
2023-12-15 19:57:02 +00:00
Bart van Helvert
d0ecc297e2
[java] Remove VirtualManifestProvider extension
...
There can only ever be a single implementation of this extension, making it useless. #IDEA-341080 Fixed
GitOrigin-RevId: 9fe43256ee9e28a8e50d9cddf13b0cfb18b328db
2023-12-15 19:56:59 +00:00
Tagir Valeev
fcd18947fa
[mod-commands] Mark API as non-experimental (except several specific methods/classes)
...
Also: rename moveTo -> moveCaretTo
GitOrigin-RevId: 831c19425697bc0729a8f6f324fc13fdcff2507c
2023-12-15 14:38:54 +00:00
Bas Leijdekkers
68880a5c91
Java: add explanation comment (IJ-CR-122378)
...
GitOrigin-RevId: 24e0be4499d3a8c54663235b17f32b35cbf87c98
2023-12-15 12:27:59 +00:00
Bas Leijdekkers
d0adc5895a
Java: fix good code is red super() call problem 3 (IDEA-340994)
...
"Cannot reference class before supertype constructor has been called"
GitOrigin-RevId: 70471c3f1a58c5c57ab229e24d39baa1794b8e72
2023-12-15 12:27:55 +00:00
Bas Leijdekkers
6b8d6303b4
Java: fix good code is red super() call problem 2 (IDEA-340994)
...
"Cannot reference class before supertype constructor has been called"
GitOrigin-RevId: 510ee2de490dce949a0926303de39e69c998e6e3
2023-12-15 12:27:51 +00:00
Bas Leijdekkers
0b42cca24f
Java: fix good code is red super() call problem 1 (IDEA-340994)
...
"Cannot reference method before supertype constructor has been called"
GitOrigin-RevId: c65ab2d636671ec192dbdbec67c0afd494224fd9
2023-12-15 12:27:47 +00:00