Commit Graph

370 Commits

Author SHA1 Message Date
Louis Vignier
712fec98d9 [java] Update inspection descriptions
GitOrigin-RevId: 17a71e3175e73635bceeff63d0c132b1c89bcbfe
2021-03-16 19:54:03 +00:00
Louis Vignier
170c838207 [java] Update inspection descriptions
GitOrigin-RevId: 1c55fac4ca08678e76aee02962ddf12153dd51cd
2021-03-16 14:56:20 +00:00
Louis Vignier
d830ccbf28 [java] Update inspection descriptions
GitOrigin-RevId: c9f960eb87b520f47644c31cdfabf03434ee9b59
2021-03-16 14:56:18 +00:00
Bart van Helvert
e321d26a2d [java] Update inspection description
GitOrigin-RevId: b74ce5e0a81dec057cc35df07fc1fee411adf0e7
2021-03-15 20:38:45 +00:00
Andrey.Cherkasov
430ad9a42a [java-highlighting] IDEA-216120 Provide fix for the "Illegal initializer for ..." error
GitOrigin-RevId: edf4f5e72243afe44f0bcbbacd2e753a2e5faf1e
2021-03-12 10:42:19 +00:00
Andrey.Cherkasov
59907581a6 [java-inspections] IDEA-216271 Remove custom priority of CreateConstructorMatchingSuperFix for "Ambiguous method call"
GitOrigin-RevId: e07ef70a632f356fa4d9cba92a35128f22ab96ee
2021-03-11 13:23:50 +00:00
Andrey.Cherkasov
de64886d9e [java-highlighting] IDEA-216271 Provide fixes for the "Ambiguous method call" error
GitOrigin-RevId: c2cbd4f561b4d77b43a31d08b3ec8bb58f265f42
2021-03-10 12:24:57 +00:00
Andrey.Cherkasov
c19534589b [java-highlighting] IDEA-216274 Provide fix for the "Not allowed in interface" error
GitOrigin-RevId: 1290ab27997b03c6a75b1c8172a3477722144941
2021-03-10 01:57:16 +00:00
Andrey.Cherkasov
64323d8ab0 [java-highlighting] Change text of fix for duplicate interfaces implemented
GitOrigin-RevId: a2b6f39e8722928193ff4c3ea9a65e4a9f041fd8
2021-03-09 15:44:23 +00:00
Tagir Valeev
2642c3d0e3 [java-intentions] RemoveTypeArgumentsFix removed, replaced with DeleteElementFix
GitOrigin-RevId: b154c6bcab74ac4bf8ec09cfc3a09b5ab647759d
2021-03-04 11:01:27 +00:00
Andrey.Cherkasov
22fc82203f [java-highlighting] IDEA-216260 Provide fix for the "The receiver type does not match the enclosing class type" error
GitOrigin-RevId: 6c13081a405e2ae1d9bcb8716ae60d777376740e
2021-03-03 15:24:54 +00:00
Andrey.Cherkasov
374febfd1b [java-intention] IDEA-216266 UnimplementInterfaceAction: solve "caret after last symbol" & refactoring
GitOrigin-RevId: d569a61960c0d677527affd56448bf5c501018d8
2021-03-03 15:24:53 +00:00
Artemiy Sartakov
ccc5077467 MemberModel: detect possible out of class definitions and suggest to move them into class (IDEA-258839)
GitOrigin-RevId: 7708fdc7b3191bcd0ba46767160c4ec0b5a179da
2021-03-02 05:37:58 +00:00
Andrey.Cherkasov
e6b91363a3 IDEA-216277 Provide fixes for Abstract method cannot be accessed directly
GitOrigin-RevId: 6f21975778294ee8ddf8691f633c175c2d441ddb
2021-02-21 01:05:16 +00:00
Andrey.Cherkasov
ef728ffaca IDEA-216266 Provide fix for duplicate interfaces implemented
GitOrigin-RevId: d2cd81109ec67d2bdc55dc85563ba52e547f72c9
2021-02-16 14:40:13 +00:00
Nikolay Chashnikov
2125041499 [java] deprecation: add @ScheduledForRemoval annotation to deprecated elements (IDEA-259329)
GitOrigin-RevId: 9e43d4b84ea8860d2caf2928e6cd826597e67611
2021-02-12 16:33:10 +00:00
Tagir Valeev
a6bc8802f1 [java-analysis] Report nullability annotations on enum constants and on locals (for JSpecify)
GitOrigin-RevId: 48f21b639a1eaf3ca9c2d75e1cf846bddd726260
2021-02-11 07:05:25 +00:00
Tagir Valeev
ba33ae8bcf [java] JSpecify: initial strict mode support
GitOrigin-RevId: a387d37ac8924b8e63847eb54458424f5f690d9a
2021-02-11 05:23:59 +00:00
Tagir Valeev
aa3b987530 [java-analysis] Report incorrect locations of nullability annotations (JSpecify)
GitOrigin-RevId: bc4915321fc45458caa79dc9424467dde05a9957
2021-02-10 10:02:41 +00:00
Tagir Valeev
11771e3ba1 [java-analysis] Better support for unspecified nullness (for jspecify); report some inherently not-null places
GitOrigin-RevId: 03fdd34aa1e5d6b591478ccd65ad2279a0e69566
2021-02-10 07:09:32 +00:00
Yuriy Artamonov
162f3f40ca UAST: use package private access for UastMetaLanguage.Holder
GitOrigin-RevId: 215f30656681bbce47e2a5d267c017b0248c4c6d
2021-02-05 07:21:05 +00:00
Yuriy Artamonov
ec9c6c34aa EA-252604 NPE: UastMetaLanguage.getMatchingLanguages
GitOrigin-RevId: f9ee6d56298643ae206cfc789a94508b729149c1
2021-02-03 12:45:43 +00:00
Tagir Valeev
49cd49dfa3 [java-dfa] Revise mutability: MUST_NOT_MODIFY
New level 'MUST_NOT_MODIFY' is introduced for parameters inside pure methods to signal that we should not modify these values, but we don't actually know whether they mutable or not (fixes IDEA-257286). Also, MUST_NOT_MODIFY is dropped inside nested closures, so we don't warn if parameter is modified there.

GitOrigin-RevId: f095e72be772eef8324ef2246fb0b7262beae20d
2021-02-01 08:25:58 +00:00
Alexey Kudravtsev
b8c8561b52 fix "do not return nullable collection" blooper
GitOrigin-RevId: 93a9f9f0d5ed49c12dd4c8d0a477bc75eede915b
2021-01-24 18:30:05 +00:00
Yuriy Artamonov
e056266026 UAST: Support plugins loading/unloading in UastModificationTracker
GitOrigin-RevId: b58014061b23e49f1c51ac37b70a8fe52e50efc2
2021-01-19 13:34:50 +00:00
Nikolay Chashnikov
645a720b58 [java] API cleanup: remove unused API which was deprecated for a long time (IDEA-259329)
GitOrigin-RevId: b2f2c85514d360e8d716e6f136f7c11760086f0e
2021-01-15 22:21:07 +00:00
Vladimir Krivosheev
4fc9fa8663 reduce trove usages
GitOrigin-RevId: 4dcfdc7c99548901ea1012d844faee04aede245f
2021-01-15 07:41:17 +00:00
Yuriy Artamonov
9374dcffb8 UAST: UastModificationTracker should sum modification counts directly without iterating through all languages
GitOrigin-RevId: a7940220347d377b48a402b9ea3eea34e75c90ac
2021-01-12 13:40:56 +00:00
Tagir Valeev
5d20b5dbb9 [java-highlighting] Allow statics inside inner since Java 16 (IDEA-257410)
Also remove redundant record tests

GitOrigin-RevId: ce57189891b3df3ba4659e8e3a2ded125234911a
2020-12-25 11:59:29 +00:00
Artemiy Sartakov
7de400f55b Sealed classes: report permits classes that miss final/sealed/non-sealed modifier at permits list (IDEA-255805)
GitOrigin-RevId: 7d1c2c6d8f40302177b369838238858e44427c51
2020-12-22 10:40:52 +00:00
igor.kulakov
547015aee2 IDEA-249856 proofreading resources
GitOrigin-RevId: f23d92ca40f25fefadfc2941c77624f4199c29a0
2020-11-30 22:16:44 +00:00
Tagir Valeev
5e6932f3b5 [java-dfa] Check new array length to be non-negative in DFA
Fixes IDEA-254545 Inspection for allocation of array with negative size
Tests are contributed by Ivo Smid (PR#1468)

Co-authored-by: Ivo Smid <ivo.smid@gmail.com>

GitOrigin-RevId: b58f281faa6caeeb5a7fbb06b110182994369426
2020-11-19 02:39:59 +00:00
Tagir Valeev
35b14cacc7 [java-inspections] UnnecessaryToStringCall: option to report non-null qualifiers only; enable by default
Fixes IDEA-253383 "Redundant string operation" inspection should report use of toString() in string concatenation

GitOrigin-RevId: 935907a0b470503f915399947d3603c9852a440d
2020-11-12 03:28:51 +00:00
Sergey Patrikeev
3957e18003 i18n fixes in the 'execution-impl' module.
GitOrigin-RevId: af6604abe0ed2dd606e2362d3f173932ea4c4df8
2020-11-09 19:51:24 +00:00
RedNesto
66b2ceb0c8 IDEA-253543: Include annotations in ChangeParametersRequest
(close #1463)

GitOrigin-RevId: aaac2090c8685717c1796640de511288e0a94844
2020-11-05 13:35:46 +00:00
Vladimir Krivosheev
924abe229c cleanup (get rid of ServiceManager.get)
GitOrigin-RevId: 7f6a905353889c9795e5d40a8aa60f6251000f05
2020-10-16 11:34:52 +00:00
Tagir Valeev
742ad45a22 [java-dfa] Report implicit unboxing of nullable method reference argument
Fixes IDEA-250913 Inspection "Constant conditions and exceptions" does not catch "Unboxing may produce NullPointerException" in stream operations

GitOrigin-RevId: 536668db2e1b3bb5307cccff710f3212d07bce2e
2020-09-21 09:44:52 +00:00
Artemiy Sartakov
859a8fa5ba ExtendSealedClassFix: fix added (IDEA-249603)
GitOrigin-RevId: d47a517c15f0a011fae581db7aacf4b1a76bad1b
2020-09-10 09:55:47 +00:00
Yuriy Artamonov
9f45833459 IDEA-CR-66576 UAST: turn UastModificationTracker into project @Service
GitOrigin-RevId: 7131296daeaae776548b16bf50ad78f7b5f92536
2020-09-03 17:33:29 +00:00
Anna Kozlova
a29e517758 java shebang outside of source roots;tests (IDEA-205455)
GitOrigin-RevId: 571d6c8c5bef490bb933534765a73eb030814182
2020-09-03 10:08:09 +00:00
Tagir Valeev
432a7bbb98 Messages proofreading
GitOrigin-RevId: d04913e6771f3405fff73ec814b64df06dc997fc
2020-09-02 04:27:38 +00:00
Tagir Valeev
45755a41f6 [java] i18n
GitOrigin-RevId: a192ba05b86da2fb7fe64f08ac30f5d4e18a229a
2020-08-20 16:17:23 +00:00
Tagir Valeev
cf7aed35a5 [java-analysis] i18n; HtmlChunks used
GitOrigin-RevId: 3a3fda7178ae526ee80dcbd77d2c2402c801e4f9
2020-08-19 18:27:24 +00:00
Tagir Valeev
d363d08f34 [java] i18n
GitOrigin-RevId: e4068d7df3f47abf67b4075f354e33e611693b2a
2020-08-19 14:14:34 +00:00
Ilyas Selimov
cb1822f897 [java-i18n] analysis
GitOrigin-RevId: a6845a60583f60e4227e3cc09675b16e9bae7ff1
2020-08-08 05:56:41 +00:00
Roman Ivanov
201a3be42f i18n: java-impl
GitOrigin-RevId: 9e2037f0bf703edd74744fe144f51855190ad92d
2020-08-07 17:32:37 +00:00
Tagir Valeev
cd46dd1e6f i18n
GitOrigin-RevId: e3d3545e01f7e39a0adac3ced629fad3bc6ca1d7
2020-08-07 11:09:43 +00:00
Tagir Valeev
847e780060 [i18n] Java DFA (including TrackingRunner) i18n
GitOrigin-RevId: c4ec7e3f39956467e38ca0599afb1eb0aaefad2a
2020-08-07 08:24:37 +00:00
Ilyas Selimov
39c3b20e3d [java-i18n] fixes
GitOrigin-RevId: 6c6aa131594515157bad57a25703e147cd529f88
2020-08-06 06:17:39 +00:00
Tagir Valeev
2e924823aa [java-analysis] i18n
GitOrigin-RevId: fd8e13391fea00055e1c4025ea560b7f583cadff
2020-08-05 10:29:44 +00:00