Commit Graph

1884 Commits

Author SHA1 Message Date
Tagir Valeev
43b02d2a23 [java-refactoring] Support parameters on conflict detection
GitOrigin-RevId: 308c1da92a04f6212c0e6bb764bdf6d940192b2d
2024-04-11 14:46:35 +00:00
Tagir Valeev
ac165fab2d [java-refactoring] Separate description for pattern variable; tests for conflicts
GitOrigin-RevId: 8609f4658c1ceb0575372102b55128e098000dc6
2024-04-09 10:29:09 +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
Bas Leijdekkers
29d7aea7d4 [java] better message when trying to extract constant of variable accessed for writing
GitOrigin-RevId: deb515ab12422a30908578f9cdb367c902354942
2024-03-06 19:03:19 +00:00
Bas Leijdekkers
bf6fdd2607 [java] avoid some duplicate properties
GitOrigin-RevId: 7fa2f2f584d1b59c475d372ed5f0ca8f9969ee3c
2024-03-06 19:03:16 +00:00
Bas Leijdekkers
6583f8ee65 [java] disallow extracting super expression (IDEA-340915)
GitOrigin-RevId: cb698e271e04767dead0a72d7a70cb3a537af614
2024-03-06 19:03:13 +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
Yuriy Artamonov
fa6619aa62 [java] IDEA-346483 IDE frozen on start during scanning in JavaLibraryUtil
GitOrigin-RevId: 041170d5315969ef41c0a7e702b3a195f34a1a09
2024-02-19 22:45:31 +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
Vladimir Parfinenko
d4fd47db1e [debugger] refactor ClassFilter array copying, IJ-CR-126343
GitOrigin-RevId: f66a6b2e002e2e6eaaaba765cc5ff8e8f30df9d6
2024-02-19 13:34:34 +00:00
Yuriy Artamonov
210cb038c2 [java] IDEA-346184 JavaLibraryUtil holds a lot of duplicated strings in big projects
Properly synchronize access to Interner as it is not thread-safe

GitOrigin-RevId: ceebb04c13ae8e09da0f53cf33e0dcc29e810ff0
2024-02-18 20:35:08 +00:00
Bart van Helvert
7e78082cce [java] Properly search hierarchy for meta annotations
#IDEA-342351 Fixed

GitOrigin-RevId: 27da12039bf7a7c46da5803d45d1a6125344f233
2024-02-16 14:51:47 +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
Anna Koehler
83d82b0df9 Revert "[java] IDEA-346184 JavaLibraryUtil holds a lot of duplicated strings in big projects"
This reverts commit fc611b9bcd01422f35b7e8d8aec788002b97e8cf.

GitOrigin-RevId: 3911f78eff328bcfcb2b2a513eeb3a6e57211b88
2024-02-15 13:04:46 +00:00
Yuriy Artamonov
6a4a118892 [java] IDEA-346184 JavaLibraryUtil holds a lot of duplicated strings in big projects
GitOrigin-RevId: fc611b9bcd01422f35b7e8d8aec788002b97e8cf
2024-02-14 23:53:39 +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
Dmitry Batkovich
df74a058a6 Revert "do not try to resolve libraries more than once IDEA-345621"
This reverts commit 755a91eff76f55190b3f34375d2cdbbb91be3e90.

GitOrigin-RevId: 1d6b4b7ab1afdeab473ade934d50fe9c3275d6f4
2024-02-12 18:50:04 +00:00
Vladimir Parfinenko
a8f5df59f2 [debugger] refactor ClassFilter array copying
GitOrigin-RevId: a1536127bcefd9c2b6c76a8b646dd0c81269012f
2024-02-12 16:38:02 +00:00
Dmitry Batkovich
c12cd3f4e1 do not try to resolve libraries more than once IDEA-345621
GitOrigin-RevId: 755a91eff76f55190b3f34375d2cdbbb91be3e90
2024-02-12 10:39:21 +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
Georgii Ustinov
63ff44eadd [Java. Logging] Add panel with java loggers to the settings
IDEA-331693

GitOrigin-RevId: 7442a954df225c77e946c073ec1875bfaf90363a
2024-02-07 13:30:03 +00:00
Georgii Ustinov
b5eb7a5e1f [Java. Logging] Create logger configurable
IDEA-331693

GitOrigin-RevId: 7e60f28e7e9d7834f05176247e2cd06ab7d05d18
2024-02-07 13:30:03 +00:00
Bas Leijdekkers
6f346e74d2 Java better name for action
GitOrigin-RevId: 482792752d305b3f1b83718746aebbad061347d2
2024-02-03 19:52:19 +00:00
Bas Leijdekkers
bdfb889e4c Java: fix typo in message
GitOrigin-RevId: 5002776fdaec9763d2dfd786aa464c53aca5c1e7
2024-02-03 19:52:16 +00:00
Aleksey Dobrynin
4be08d597b [java, completion] Support completions for jigsaw modules for classes outside of current module dependencies. IDEA-341664
GitOrigin-RevId: a8d08f94e3f34188e8c6ee29ab26c1fc9c376d49
2024-02-02 15:18:52 +00:00
Aleksey Dobrynin
9e1052fff8 [java] fix a message IJPF-CR-20237
GitOrigin-RevId: a4189796ec6f163ecfd9d7e5de596effb8fc61b9
2024-01-30 14:29:13 +00:00
Tagir Valeev
0385834f13 [jvm-inspections] Fix EmptyMethod compatibility with Kotlin
1. Fix suppression handling for Kotlin in global inspections
2. Fix RefMethodImpl#hasBody for top-level Kotlin functions
3. Move to JVM module
4. Add Kotlin tests
Fixes IDEA-330737 @file:Suppress("EmptyMethod") does not work

GitOrigin-RevId: 83f383e06754f510b6a99e35751263017734bb26
2024-01-29 19:42:30 +00:00
Bas Leijdekkers
d18e2bf145 Java: better messages for "Class can be record class" inspection
GitOrigin-RevId: ed850cd155a3fcda76d62b2f27a2d4da07ce69a9
2024-01-28 01:18:30 +00:00
Tagir Valeev
d01d523de1 [java-inspections] Unreachable code inspection (IDEA-342966)
GitOrigin-RevId: 4bcbf2d43bddca5ded941c2b1497715ff977ca0b
2024-01-19 11:20:26 +00:00