Commit Graph

587 Commits

Author SHA1 Message Date
Louis Vignier
ac322938d0 [jdk] Add ToolVersionsConfigurationProvider to monitor asdf .tool-versions
#IDEA-355295 Fixed

GitOrigin-RevId: 8373fa2b75e12171208c7af71af9234b31f97e13
2024-07-19 14:33:47 +00:00
Louis Vignier
7ccd3af88d [jdk] Introduce ExternalJavaConfigurationService and migrate SdkmanrcWatcher
#IDEA-355295

GitOrigin-RevId: bbcefd977b5d88e3a8b0d137b1b5cfda6eb3050a
2024-07-19 14:33:47 +00:00
Georgii Ustinov
ec7cc10b05 [Java. Code Formatting] Rename ui names related to blank lines near fields to 'Before' instead of 'Around'
IDEA-110857

GitOrigin-RevId: 660836d90fa3ea06c5fb006b9ce14f59c55155ff
2024-07-16 12:40:48 +00:00
Tagir Valeev
38df966e10 [java-inspections] RenameToIgnoredFix: cancel gracefully in case of concurrent modification
Fixes EA-1328866 - NA: PsiReferenceExpressionImpl.bindToElement

GitOrigin-RevId: 1bb87c6d4054c1c775f2bfe02becb6fc40d0db6c
2024-07-10 11:21:11 +00:00
Nikolay Chashnikov
902b1bb444 [kotlin] fix truncated message in "Generate equals/hashCode" (KTIJ-30437)
GitOrigin-RevId: d59485cedb54dde12ec21f971aebe9e9e08d1f40
2024-07-05 16:59:47 +00:00
Georgii Ustinov
93b6c3ccc2 [Java. Code Formatting] Split option to add blank lines for fields with/without annotations
IDEA-110857

GitOrigin-RevId: 6ee23199e686c649439833df1223a12494be9d00
2024-07-04 19:56:48 +00:00
Bas Leijdekkers
774c6c6d42 Java: fix "Variable assigned to itself" inspection quick-fix operator assignment bug (IDEA-306674)
GitOrigin-RevId: 92f5ab3b782cd0a2e6af8f83ff80de64f000c3bf
2024-06-21 09:13:06 +00:00
Mikhail Pyltsin
e42c3ee1e4 IJ-MR-136429 [java-generation] IDEA-344399 generate annotation based on type_use option
- fix message
- fix comparator

GitOrigin-RevId: 842fbf9e29150159ae92a47eddb84eb9a8d7288a
2024-06-17 21:14:57 +00:00
Mikhail Pyltsin
9bf2727703 [java-generation] IJ-MR-136429 IDEA-344399 generate annotation based on type_use option
- fix non-standard-root-packages
- introduce project descriptors

GitOrigin-RevId: 41db7240e29fbfed81957df2d68e2de29c573ef2
2024-06-17 21:14:57 +00:00
Mikhail Pyltsin
2023228d8c [java-generation] IDEA-344399 generate annotation based on type_use option
- extracted new option
- reuse this option in MissortedModifiersInspection
- override uses this option too

GitOrigin-RevId: 39f3f72991240753c86c7f80df865728aa9743ad
2024-06-17 21:14:57 +00:00
Yuriy Artamonov
b9416a8db9 [java] IJPL-34876 Declare icons and texts for ParseSdkmanrcAction declaratively
GitOrigin-RevId: 16e5d519d8be7f64fd5f286580d70c96c91d72de
2024-06-15 21:01:31 +00:00
Mikhail Pyltsin
e8093a742f [java-logging] IDEA-354689 freezing with too long name
GitOrigin-RevId: d4629b1008ac0dcfeb256b3f7dd9ef733a129ff8
2024-06-14 12:59:18 +00:00
Georgii Ustinov
3ae38b4cff [Java. Code Formatting] Fix typo for whitespace option "Inside block braces when body is presented"
IDEA-270369

GitOrigin-RevId: cce77ef8ec80c45622f6707c9671ac5a774763f8
2024-06-10 10:10:41 +00:00
Georgii Ustinov
bb9759a556 [Java. Code Formatting] Add support to configure spaces for simple nonempty blocks when the "Spaces within blocks" is disabled
IDEA-270369

GitOrigin-RevId: 19283bcf734658323659abe7f14e5c38fdc9fec3
2024-06-07 17:47:43 +00:00
Bas Leijdekkers
4777c9dd1b new "String template can be concatenated string" inspection (IDEA-349463)
GitOrigin-RevId: 84871569e435e1f1cd5c06814781739baf977cae
2024-06-07 14:19:07 +00:00
Tagir Valeev
3b688121d2 [java] IDEA-353981 'Rename to ignored' fix: ModCommand, allow 'fix all' action
GitOrigin-RevId: 83676caca1d4a0f6308d649efd92d6f58845b57e
2024-05-23 19:00:36 +00:00
Bas Leijdekkers
ccb7a28e9f [java] small inspection descriptor simplification
GitOrigin-RevId: d66de66e71fed85b5d1f774c504d74a3963476bd
2024-05-23 12:46:43 +00:00
Eugene Zhuravlev
4e442deca3 introduce "unified IC implementation" advanced compiler setting to enable dep-graph based IC
GitOrigin-RevId: 799fd4aefb2ba35db1ac3addfb1724f81d5d6c58
2024-05-22 20:44:32 +00:00
Aleksey Dobrynin
ccf644aaed [java, completion] use default tail text for a jigsaw completion IDEA-352245
GitOrigin-RevId: 1d7753860c413c92d697dc106f4d011022c861ce
2024-05-14 15:34:39 +00:00
Roman Shevchenko
ac742921c5 Cleanup (typos; formatting)
GitOrigin-RevId: 9733aeebbae11f645b17261f25692b92557ccd3a
2024-05-12 20:30:07 +00:00
Tagir Valeev
0ea0eadc51 [mod-commands] IJPL-149593 ModCommand-based Surrounder API
GitOrigin-RevId: 56b1bc727db4e686afc6363326c1b079030da414
2024-05-12 17:34:00 +00:00
Louis Vignier
a33d7253a0 [jdk] Add a checkbox in the settings to disable JDK updates
#IDEA-330415 Fixed

GitOrigin-RevId: f669e4e59832816fe5fb7d9107ca24dd03ed60b0
2024-04-26 19:56:08 +00:00
Tagir Valeev
11097530d4 [java-intentions] Remove outdated MoveMemberIntoClassFix.java
Superseded by MoveMemberIntoClassFix.java

GitOrigin-RevId: cc3a29aa7089f91ff5c13a61e722c0ad3843985e
2024-04-22 19:34:03 +00:00
Tagir Valeev
7cf578f646 [java] Cosmetic changes in feature-based language level support (IDEA-345517)
GitOrigin-RevId: 8fe21e83b6cee29955d5be5d45744d3db18ea99d
2024-04-03 19:43:15 +00:00
Bas Leijdekkers
9414c123b8 [java] create annotation value() method from usage (IDEA-350345)
GitOrigin-RevId: 3596e1f35ce3f603789c69f90b28aacaf448866a
2024-04-01 10:52:18 +00:00
Alexey Belkov
c0c2bd301b Proofreading: replace "missed" with "missing" in messages
https://english.stackexchange.com/questions/142544/is-missing-vs-is-missed

"Missing" should be used in the "absent" sense.

GitOrigin-RevId: e3e6ff4907dfb5bda98144919021c8b2c4dd5940
2024-03-28 11:44:04 +00:00
Louis Vignier
9b9f155f70 [java] Warn on JDK/OS arch mismatch when building the project
- Sends a sticky balloon notification on the first build with a JDK every session in case of arch mismatch (shown again after changing JDK)
- New checkbox in Build | Compiler | Java Compiler to disable warnings

#IDEA-343661 Fixed

GitOrigin-RevId: ac9b36b05403ac38acc7a55944850608f86d4e59
2024-03-26 18:18:48 +00:00
Kirill Likhodedov
ba0d2499cd internal-tools: move the InvalidCompilationListener to the internal tools
There is no demand for the feature in the Java plugin at the moment. At the same time, we'd like to extend it by some internal capabilities like reporting to Slack, which is more convenient to do when the whole feature is located in a single module.

GitOrigin-RevId: 0249858bb6824a3cab4e416b9ebc2eb83ba295ae
2024-03-18 13:17:48 +00:00
Tagir Valeev
193b2cb477 [java-inspections] Experimental ModCommand-based DeletePrivateMethodFix for unused inspection
GitOrigin-RevId: efd9306505048695f1aa1de1851383e170b0c1ca
2024-03-12 16:55:18 +00:00
Aleksey Dobrynin
59caea7b12 Revert " [java, highlighting] add standard "jigsaw" modules from the user's JDK for non-modular projects IDEA-259485"
This reverts commit 8e172c5f75f1d0840fbd48206c4e4708f47084fc.

GitOrigin-RevId: 01871c48dca312f03d9b97a22ecf3602b7714613
2024-03-11 17:59:22 +00:00
Aleksey Dobrynin
1693569519 [java, highlighting] add standard "jigsaw" modules from the user's JDK for non-modular projects IDEA-259485
GitOrigin-RevId: c006ccb6680010eed93cf956befcfdcebaa7551b
2024-03-08 18:49:36 +00:00
Georgii Ustinov
5168d264d7 [Java. Logging] Replace display name for logger variable and align it with the preferred logger combobox
IDEA-347382

GitOrigin-RevId: dec1fff935dd623808176ecf0bce37a47b2c4f37
2024-03-04 09:04:37 +02:00
Aleksey Dobrynin
d9e11e9153 [java, completion] refactoring: simplify code, add javadoc, add localization IJ-CR-127501
GitOrigin-RevId: e5adf605b24e8f74932f98c805d926ea4ef5d200
2024-03-01 22:56:33 +00:00
Georgii Ustinov
69625bf48e [Java. Logging] Add validation for the logger's name and rename its label
IDEA-347382

GitOrigin-RevId: 9d1e7fc2888dece64dede3bd08559474a7274ca5
2024-02-27 10:35:37 +00:00
Georgii Ustinov
846822e128 [Java. Logging] Add basic logger name configuration
IDEA-347382

GitOrigin-RevId: 0eed701a66cdd0fd3f0cdc7aefd94a8c7fbeffac
2024-02-27 10:35:24 +00:00
Tagir Valeev
d89c17fc59 [kotlin-dfa] Move inspection.data.flow.warn.when.reading.a.value.guaranteed.to.be.constant to JavaAnalysisBundle
Preparatory step for KTIJ-28908 Convert "Constant conditions" inspection to K2

GitOrigin-RevId: 68798782d260f8245947423efd936ae82bde841c
2024-02-24 12:22:09 +00:00
Georgii Ustinov
3529ce4b26 [Java. Logging] Add id field to the JvmLogger
IDEA-345098

GitOrigin-RevId: 8e4db43c54658ca573918527e2714bbb1e73d590
2024-02-22 19:57:33 +00:00
Tagir Valeev
c756a7ffe4 [java] i18n warning fixed
GitOrigin-RevId: 630de5d7cfbce817b6a927a3892ee50b50dc60c4
2024-02-21 10:40:53 +00:00
Aleksey Dobrynin
b2010f620b [java, inspection] Change inspection name (Auto-add -> Fill in). Refactoring. (IJ-CR-126295)
GitOrigin-RevId: b3ac08c0c18442a1343c636e9ce404979f1210cf
2024-02-19 21:06:53 +00:00
Aleksey Dobrynin
1714ca86b3 [java, inspection] generate necessary requires for empty module-info.java file. IDEA-341665
GitOrigin-RevId: 47bce7db3bc4429cdfd78bbb3518e8fea1cc80b8
2024-02-16 11:31:15 +00:00
Tagir Valeev
1b105a0cf2 [java-inspection] IDEA-344750 Warning the usage of Stream.count() may have side-effects as per Javadoc apiNote for Java 8+
GitOrigin-RevId: cee842e9966051f95d86f83c8e8509a08fb48c64
2024-02-15 13:23:36 +00:00
Tagir Valeev
2aa52eea2d [java] IDEA-345517 Feature-based support of unsupported preview language levels
GitOrigin-RevId: 3037d36588c239d6236ba64a7df2bf2a3b51cba4
2024-02-12 19:12:39 +00:00
Yuriy Artamonov
8c259fa269 [java] IDEA-343556 Java: provide override line markers in dumb mode
GitOrigin-RevId: 96e58759c54a9fc03ed2f79a519f8971469be55b
2024-02-11 12:31:04 +00:00
Georgii Ustinov
baf6a46750 [Java. Logging] Add tests for anonymous and implicitly declared classes + review refactor
IDEA-331693

GitOrigin-RevId: 2ca3503bfbf7d37602ad698f071292a8773c6e29
2024-02-07 13:30:04 +00:00
Georgii Ustinov
1799d0d6dd [Java. Logging] Add specifying class feature for the logger generation
IDEA-331693

GitOrigin-RevId: 277219c6b4eb07acb3f877e49c9d3c45980976b5
2024-02-07 13:30:04 +00:00
Georgii Ustinov
cd3c370dd4 [Java. Logging] Add link to jvm logging settings during logger generation
IDEA-331693

GitOrigin-RevId: 1ce67c81cf23a7a28985334ca2462ee0cd6267cf
2024-02-07 13:30:04 +00:00
Georgii Ustinov
bbec342994 [Java. Logging] Add group to JVM Logging settings, amend Logger label, change executor, refactor JavaLoggerModel
IDEA-331693

GitOrigin-RevId: 8ac302db20243578f38763623847e181cc8e46df
2024-02-07 13:30:03 +00:00
Georgii Ustinov
b0fdafef73 [Java. Logging] Rename loggers to presentable name and rename JavaConfigurable to JvmLoggingConfigurable
IDEA-331693

GitOrigin-RevId: e840de417694002f335a4a45a8947bba53aeae2a
2024-02-07 13:30:03 +00:00
Georgii Ustinov
d8af30ab07 [Java. Logging] Add warning in UI without state aware
IDEA-331693

GitOrigin-RevId: 8dc5a14b2299498e814500de73a41f101e83a271
2024-02-07 13:30:03 +00:00
Georgii Ustinov
cbb97448ad [Java. Logging] Create dialog for choosing preferable logger before its generation
IDEA-331693

GitOrigin-RevId: bb620a38f4d30c020965814addc7ea388d186b93
2024-02-07 13:30:03 +00:00