Commit Graph

22103 Commits

Author SHA1 Message Date
Bas Leijdekkers
de063f393b java: don't report implicit constructors as unused
also report kotlin code again

GitOrigin-RevId: 765fe96b65f15194ac8d3cfaa576b46202a9f6ca
2024-04-22 23:27:37 +00:00
Tagir Valeev
f2d83d754b [javadoc] JavaDocumentationProvider: no external URL for implicit classes with package statement
GitOrigin-RevId: 925741861a67d89cdadb3d0635fa47af38fa9b89
2024-04-22 19:34: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
Dmitry Batrak
881b370b95 RDCT-1092 Hotkeys are displayed incorrectly in popups on different OS
replace SystemInfo.isMac with ClientSystemInfo.isMac() in keyboard-shortcuts-related code

GitOrigin-RevId: 640604dff8e09d1aeccd0edc156873dd63c09fea
2024-04-22 19:16:22 +00:00
Tagir Valeev
a9c502e8d3 [java-inspections] IDEA-352283 Turn off Unreachable code inspection by default
GitOrigin-RevId: 0d88d38267fdc2692a22f3314fa0842028611456
2024-04-22 12:55:39 +00:00
Tagir Valeev
6f1f6ef6f8 [java-completion] Fix: 'import' keyword is not suggested at the beginning of the last import statement due to implicit class parsing
GitOrigin-RevId: 7d1e41bff95099ba855fb0ee0bd47aae66695ea7
2024-04-22 12:55:32 +00:00
Tagir Valeev
004677318e [java-inspections] UnreachableCode.html: describe failing contract inference situation
GitOrigin-RevId: 05090bb1d4926673269cdee27d75cc604838f320
2024-04-22 11:00:48 +00:00
Yuriy Artamonov
ed4b509b66 [java] IDEA-341622 Better cache NullableNotNullManager#findEffectiveNullabilityInfo for library methods
GitOrigin-RevId: ecc23faa48a12ae14ad91be62d0a2216eca74e7a
2024-04-21 17:28:15 +00:00
Egor Ushakov
2a749b733a [kotlin debugger] do not replace the whole coroutine stack with async, only replace the required parts
GitOrigin-RevId: 8748e30421545e44464f3dd490ba87d85911744a
2024-04-21 11:14:49 +00:00
Roman Shevchenko
76aabae33e Cleanup (typos; formatting)
GitOrigin-RevId: f88e1dbc46a5cb25603323196a4d422ec475489d
2024-04-19 22:18:14 +00:00
Yuriy Artamonov
f41a7c4dc9 [plugins] IJPL-148474 Use non-blocking read action to collect libraries in DependencyCollector
GitOrigin-RevId: c5b597fada22aa0e5fac524c57d5b6051e27804b
2024-04-19 20:19:19 +00:00
Daniil Tsarev
9d2a1a6d3c [jakarta] Collect Jakarta MVC package usages
GitOrigin-RevId: e7d11d7b9c29e040ef12741766feca89b1f6751e
2024-04-19 20:05:38 +00:00
Tagir Valeev
053d59f113 [java-psi] Move JavaLexer utility methods to PsiUtil to make them accessible from java-psi-api
GitOrigin-RevId: 88a728c1d021f703dc9f882e1f9213cd8477ed7a
2024-04-19 17:41:51 +00:00
Denis Zaichenko
321a940823 IDEA-22318 Merge VCS conflicts in "import" statements
GitOrigin-RevId: 6a228e8d5d16637cdcf53369a2818cda014e9214
2024-04-19 17:09:23 +00:00
Konstantin Aleev
a08ef89ea9 [spring] IDEA-351807 track spring-modulith usage by api annotation presence
GitOrigin-RevId: 9931423f09f323d11974c6205982b31985a83073
2024-04-19 15:21:49 +00:00
Konstantin Aleev
a6136f06af [graphql] IDEA-340121 collect graphql-dgs usage statistics
GitOrigin-RevId: be7a336d2aa0c33cd032fa4598b4c0e90f409a74
2024-04-19 15:21:44 +00:00
Konstantin Aleev
48415c4f91 [spring] IDEA-351807 collect spring-boot-testjars usage statistics
- collect unirest imports statistics
- collect helidon mp statistics

GitOrigin-RevId: 4ed6e0334bd6150e9ee419f047443ad9fb94fb92
2024-04-19 15:21:38 +00:00
Roman Ivanov
5887fe8221 [java] implement constant pool parser and build id index using it for class files in jars IDEA-327594
GitOrigin-RevId: fff7c155b86e950e547fd8d01f142867c03c7c5c
2024-04-19 14:19:21 +00:00
SirYwell
5cca49b4f1 Add Arena#ofAuto and Arena#global to list of ignored AutoCloseable producers
GitOrigin-RevId: 75b029b8307891306a68788dfc01e2df2aca1cc6
2024-04-19 14:19:17 +00:00
Roman Ivanov
4a4ec64d2e Create java module file type
GitOrigin-RevId: 57870035dccbd5d35c331a4ddfc3d088edcf8aba
2024-04-19 14:19:04 +00:00
Tagir Valeev
02f815ca4a [java-dfa] IDEA-351380 Support @CheckForNull with @TypeQualifierNickname
GitOrigin-RevId: 7247332e3e0aba95116cb4d84696c00cfa20ba45
2024-04-19 09:51:46 +00:00
Mikhail Pyltsin
74e210570e [java] Pattern variable can be used mass cleanup
GitOrigin-RevId: 46452d7711435b63fca78af3a6f634bcec862139
2024-04-18 14:03:54 +00:00
Sergei Vorobyov
f49f7db609 [SdkLookup] new: made SdkLookupUtil friendly for Java and Kotlin
GitOrigin-RevId: 513a4030492644cde4a715bc42f8bb993d9b9348
2024-04-17 20:12:42 +00:00
Dmitry Pogrebnoy
b600dab5d4 IDEBIS-32 Kotlin Debugger survey
IJ-CR-131023

GitOrigin-RevId: cd6ccfbf36f3c505b2ef7ab0338fccc977ef67d1
2024-04-17 16:19:26 +00:00
Tagir Valeev
5caf42dc70 [util] Merge NameUtilCore#uniqName into UniqueNameGenerator
GitOrigin-RevId: a43f8908b639a6e5b562be99af5f880a85cfac74
2024-04-16 19:06:47 +00:00
Alexey Kudravtsev
f1934fcbb2 EA-1159926 (plugin) - ISE: ClassGroupingRule$ClassUsageGroup.$$$reportNull$$$0
GitOrigin-RevId: 6c97361a5d8d4447e0ac1f63181d15987e5316b5
2024-04-16 17:21:28 +00:00
Vladimir Krivosheev
e0eca3f758 quick fix for "FileBasedIndex should not receive default project"
GitOrigin-RevId: 9b0f96e8649f1c80ec3ccee12e6277e4af1acd71
2024-04-16 17:06:32 +00:00
Tagir Valeev
f932e7bfe4 [java] Auto-import wrap StaticImportMemberQuestionAction.getElementPresentableName into ReadAction
Reported in IDEA-348377 Auto-import not always an option in context actions

GitOrigin-RevId: 190171bc4c418c834467b44857ce47f73b7ab46f
2024-04-16 16:24:32 +00:00
Mikhail Pyltsin
678b932b33 [java-compiler] IDEA-290373 Check sensitivity for reference index.
- Use root to check case-sensitivity by default

GitOrigin-RevId: 1ee64c32753f049d518aec51b48ab266a4a881b2
2024-04-16 13:53:49 +00:00
Vladimir Krivosheev
25914f6de7 cleanup - sort modifiers
GitOrigin-RevId: 0e9f1be04f911b42b994a19c41cf05a2ab4a0985
2024-04-16 08:17:35 +00:00
Bas Leijdekkers
0b1872f794 java: report string.toCharArray().length -> string.length() (IDEA-351174)
for "Redundant 'String' operation" inspection

GitOrigin-RevId: 96c3b5d310b9639c74241f48348257bbb83dbe93
2024-04-11 09:52:00 +00:00
Bas Leijdekkers
7bb2aefd05 inspection descriptions update related to Java 18 nest-mates (IDEA-283315)
GitOrigin-RevId: e9889020d1869b8df8e20212b7848737335ff2a4
2024-04-11 09:51:35 +00:00
Vladimir Krivosheev
d4266f30ab avoid static init call to NotificationGroupManager.getInstance
GitOrigin-RevId: 73ad50284527a0a5fbe045935e71e4a12e9ce437
2024-04-10 18:11:40 +00:00
Alexey Kudravtsev
e1e488746f in case of several requests for the same class, show them all, do not crash, to fix KTIJ-28736 K2 IDE: False positive "unused "args" parameter" in main method inside object
GitOrigin-RevId: 748de2d87c25146b76e51b20e7e629288e5019cb
2024-04-10 12:54:44 +00:00
Bas Leijdekkers
bcbd01ca20 [java] ignore non-serializable fields in enums (IDEA-274137)
GitOrigin-RevId: 2268d012377931be155463a846f7a257208d7e1d
2024-04-08 09:55:33 +00:00
Bas Leijdekkers
2ba5d02de1 [java] add missing punctuation to inspection description
GitOrigin-RevId: c32de60d4e526cfe50ec964d62a6f6272022d39c
2024-04-08 09:54:44 +00:00
Georgii Ustinov
ccbc16539c [Java. Logging] Add NotNull annotation for arguments in StringFormatUsageSearcher#getFormatUsages
IDEA-342484

GitOrigin-RevId: 287a20e56e462d7bda871c50001871fd0e9d1f2d
2024-04-05 15:20:49 +00:00
Tagir Valeev
f943967aec [java-inspections] Minor fixes for IDEA-346242 Add 'minimal java version' clause automatically to inspection descriptions
1. Add features to assertion inspections
2. Remove redundant feature message from HTML descriptions
3. Display Java 1.3 and Java 1.4 version properly
4. Display several features when necessary

GitOrigin-RevId: 133b46152ad8376a37aa4fd847bedf38d45f3135
2024-04-05 10:20:31 +00:00
Tagir Valeev
e80a1f2be8 [java-intentions] Simplify MCIntention
GitOrigin-RevId: e3b51a9c55e0728c0e228b89dd757dc212d25556
2024-04-05 10:20:25 +00:00
Andrei Efanov
6c83c3e855 refactor: use VirtualFileUtil#originalFileOrSelf instead of complex typecasting with checks
GitOrigin-RevId: 18216a313445781188461bf84935473f74b76d0b
2024-04-04 21:21:55 +00:00
Alexey Belkov
eecd28cc02 [kotlin] J2K: Make a local copy of NullityInferrer for experiments
KTIJ-29147

GitOrigin-RevId: a290b43905bf58bffc66fbf72b349a94e38e1fa4
2024-04-04 15:47:29 +00:00
Mikhail Pyltsin
55c9701fc8 [java-completion] IJ-CR-129761 IDEA-349764 Suggest a full catch section
- catch sections are added automatically

GitOrigin-RevId: 75aed0b2281ffa0e412b1eaecf90caf406ba0182
2024-04-03 20:02:54 +00:00
Tagir Valeev
74ec1e0f2d [java-inspections] MismatchedCollectionQueryUpdateInspection: better assignment processing (IDEA-349156)
GitOrigin-RevId: a9a07b80381d309a1e70c71953c8030e20ab5e67
2024-04-03 15:36:55 +00:00
Bas Leijdekkers
2c90447e82 [java] minor updates to inspection descriptions
GitOrigin-RevId: 2009b2e0f8c7d1c268466fdc78431914bc6d3084
2024-04-03 14:14:07 +00:00
Mikhail Pyltsin
ab78cc0642 [java-completion] IJ-CR-129761 IDEA-349764 Suggest a full catch section
- catch sections are added automatically

GitOrigin-RevId: 7bb37aec0207d152d31b0c78cc91657f80036719
2024-04-03 13:32:55 +00:00
Mikhail Pyltsin
0f3e50ed04 [java-inspections] IDEA-337706 Support conversion System.out to log calls
- fix lombok test

GitOrigin-RevId: 09fc8a64fab84df1c3aa661f2107bb451b447420
2024-04-03 11:41:37 +00:00
Mikhail Pyltsin
77cac2bb83 [java-inspections] IDEA-337706 Support conversion System.out to log calls
- quickfix for SystemOutErrInspection and ThrowablePrintedToSystemOutInspection
- StringConcatenationArgumentToLogCallInspection now uses String.valueOf for one argument (exception type)
- SystemOutErrInspection has info level
- ConvertSystemOutToLogCallFix doesn't highlight ThrowablePrintedToSystemOutInspection's problems

GitOrigin-RevId: f611e6ccb0e15e5b806ed776b88b12b097d3bb5d
2024-04-03 11:41:32 +00:00
Mikhail Pyltsin
206d995dcd [java-inspections] IDEA-337706 Support conversion System.out to log calls
- support custom names for Lombok
- loggerTypeName now always returns full qualified class of logger
- `com.intellij.lang.logging.JvmLogger.Companion.getAllNamedContainingClasses` return List for compatibility with Java

GitOrigin-RevId: c07ed5bdb2f684fdc7be864d8cd7192d3ea0245c
2024-04-03 11:41:24 +00:00
Aleksey Dobrynin
992e3b7bdc [java, inspection] fix: remove library name calculation from EDT. IJ-CR-125003
GitOrigin-RevId: b325ffc3a25538b57e393503d0fff9d5d257f04d
2024-04-03 10:57:08 +00:00
Tagir Valeev
1ff1f26e15 [java-doc] Fix rendering type-annotations on arrays (including non-source annotations)
Fixes IDEA-350503 Type annotations in JavaDoc are shown in wrong order for multi-dimensional array
Fixes IDEA-300381 Inferred @NotNull Annotation on Array / VarArg method parameter incorrectly annotates the array elements and not the argument.

GitOrigin-RevId: 4a5919df70c3bac9b19fb7019365636b9a56273a
2024-04-03 09:29:48 +00:00