Vladimir Krivosheev
98799639aa
do not use _test as lib - test targets do not support this
...
GitOrigin-RevId: f2f49db4294b6a64040dbbd5f1d95e972cbd70a3
2024-12-15 18:32:30 +00:00
Vladimir Krivosheev
2f2530b0c7
SimpleExpectedType is used by java - cannot be private
...
GitOrigin-RevId: 333432fc4d13a2d4ad18cbaa70413ae838c56925
2024-12-13 15:14:43 +00:00
Alexey Kudravtsev
31185c6576
Propagate @Unmodifiable to enable data-flow inspection to analyze more code
...
GitOrigin-RevId: 288358515ebebd840b45244cd3d5b251385ff1b8
2024-12-03 15:50:19 +00:00
Tagir Valeev
5a10f2e424
[java] IDEA-364190 Create language level 24
...
GitOrigin-RevId: 500c9a05f48e6c1d43c2019a1a9620df42a2adf4
2024-12-03 14:25:33 +00:00
Tagir Valeev
5dca817b05
Add missing @Override annotations
...
GitOrigin-RevId: 56b084f82d4f4ec5153645b4d745bc881b803a26
2024-11-29 12:51:16 +00:00
Vladimir Krivosheev
17916c90f8
libraries -> lib, resources, opt-in, test deps
...
GitOrigin-RevId: db66ee95dcb0f0553b40c9cc56cd6afed8634cdd
2024-11-27 13:53:42 +00:00
Alexey Kudravtsev
9cef099839
propagate @Unmodifiable to more methods calling ContainerUtil, to enable data-flow inspection to highlight more warnings
...
GitOrigin-RevId: 01d3c976ffd35c3290433d0cd6c0f2d59df894f1
2024-11-27 12:57:34 +00:00
Alexey Kudravtsev
f2982c675f
annotate @Unmodifiable collections to which unmodifiable data from ContainerUtil is assigned, to make it easier for data-flow inspection to spot mutability-related errors
...
GitOrigin-RevId: 4372383f31177cbc00d981a81adddc88325e98b3
2024-11-26 16:58:17 +00:00
Andrzej Głuszak
cbca664f6c
[bazel] Second attempt at generating tests
...
GitOrigin-RevId: 7763c9994b7c311310b83b98a542775feb00ed68
2024-11-09 11:06:41 +00:00
Nikolay Chashnikov
8c90290e43
[java] add API to process field and method references to JvmBytecodeAnalysis (IJPL-165190)
...
GitOrigin-RevId: ace30e9296dbfef255e075ca82041b0aab340032
2024-10-25 15:24:44 +00:00
Nikolay Chashnikov
ebebd1d05e
[java] refactoring: throw IOException from ClassFileAnalyzer.processFile instead of logging it inside (IJPL-165190)
...
Calling code should deal with such exceptions.
GitOrigin-RevId: 1f6e9de4c7f9c320052877b8604e2ec5b8b289a6
2024-10-25 15:24:44 +00:00
Nikolay Chashnikov
107dc70d23
[java] extract API from AbstractDependencyVisitor (IJPL-165190)
...
JvmBytecodeAnalysis service is introduced here as an entry point to different functions which allow analyzing declarations and references in the bytecode. It makes it easier to use the API, and also allows adding functionality to process references to fields and methods (needed for IJPL-165190).
GitOrigin-RevId: 28d2659007ee38282676d583af7941988ad65d9a
2024-10-25 15:24:44 +00:00
Tagir Valeev
676c19bc1f
[java-inspections] Report TYPE_USE nullability annotation on classes
...
GitOrigin-RevId: f5c6113ccd1738d72b0f58fe13a8352a043431c9
2024-10-11 08:10:27 +00:00
Georgii Ustinov
c02d32ef74
[Java] Make JavaSpellcheckingStrategy dumb aware
...
IDEA-357681
GitOrigin-RevId: 1fead4d1fdb98c99d8b68d48813f483deaa6b35c
2024-10-05 10:25:23 +00:00
Evgenii Zakharchenko
0d2f04cbb0
[spring] IDEA-352682 Enhanced Spring data JPA repository completion
...
GitOrigin-RevId: d96f4d567646dca61b2fdab3dbea38dfd626dd37
2024-09-30 19:52:27 +00:00
Yuriy Artamonov
47f1c44a90
[java] IJPL-158521 Actions: fix ellipsis in messages for Java actions
...
GitOrigin-RevId: bfce0d6efa8747660c4b9af3d8defbfa47e4509a
2024-09-15 14:50:09 +00:00
Bart van Helvert
33ffadffde
[java] Remove empty lines
...
GitOrigin-RevId: ff0462e1869e0484207399cd7ae17166737a0b46
2024-09-09 18:57:34 +00:00
Bart van Helvert
3af9455adb
[java] Don't generate API list entry when API is not part of public API
...
These entries are useless because you can't call those APIs anyway.
GitOrigin-RevId: c43065e082851e1b1574bb9ed47050e8f0dfc61a
2024-09-09 15:04:13 +00:00
Evgenii Zakharchenko
26f4517a0e
[spring] IDEA-357318 Spring: inject on completion in constructor produces broken code
...
GitOrigin-RevId: 79fa4eeac4be5e1520963e1813be22c94db52b69
2024-09-09 14:54:07 +00:00
Bart van Helvert
362bcc4561
[java] Regenerate API lists with Java 23
...
The newly regenerated list is merged with the previous API list. The newly generated list uses an updated version of the generator that correctly writes canonical names for Java versions higher than 19. #IDEA-357683 Fixed
GitOrigin-RevId: 81c62964385d1daaeaf3e84306ebfbc5c77ad90a
2024-09-04 23:47:59 +00:00
Tagir Valeev
59325634ab
[java-inspections] IDEA-356832 Inspections ignore redundant Class::cast method call
...
GitOrigin-RevId: 390a19d69020bc91f1395e6c4d23f14992ca396b
2024-08-28 17:54:26 +00:00
Mikhail Pyltsin
cb37003541
[java-inspections] IDEA-357323 Propose case null during adding all cases
...
GitOrigin-RevId: 6d7ffccc28d64ed0f52db0235c41796d1d81284e
2024-08-09 11:00:42 +00:00
Aleksey Dobrynin
44e14f0283
[java, highlighting, import-module] Check access module names for Module Import Declarations DEA-356710
...
GitOrigin-RevId: 819c182488bd0b4aeffb8518373da35aabf311ca
2024-07-31 17:00:00 +00:00
Mikhail Pyltsin
0b30038602
[java-highlighting] IDEA-356470 Support jep 455. Generate true and false cases for boolean selector
...
GitOrigin-RevId: fbd879f172639f3db1b0d9c12f98fcb3868fa1a9
2024-07-18 20:11:33 +00:00
Nikolay Chashnikov
273f3a0aa9
[analysis] API cleanup: provide default implementation of deprecated RefManagerExtension::getLanguage and eliminate its usages (IDEA-355906)
...
GitOrigin-RevId: 05b2559ed353deb0baa5754fcef6074791e9cb5e
2024-07-17 10:04:59 +00:00
Tagir Valeev
d52f6c789f
[java-dfa] IDEA-355908 Add new mutation contract option: io
...
GitOrigin-RevId: 206fae268d8444d475a4feac6ebc5ef96ffc57bb
2024-07-04 21:05:23 +00:00
Tagir Valeev
b023c1d252
[java-highlighting] error.unnamed.variable.brackets: proof-reading
...
GitOrigin-RevId: b30031e9d76de357434f48e71b099cf27d4b90e4
2024-07-03 17:42:16 +00:00
Bas Leijdekkers
14315c7ca4
[java] introduce language level for Java 23
...
GitOrigin-RevId: d64d154c243f5c1810bf08790a1df44a6ac948cb
2024-07-03 10:13:47 +00:00
Bas Leijdekkers
994cd7442a
[java] all language levels except experimental should have an api list
...
GitOrigin-RevId: 078af83fe56039aa5a87cedade2981be4a93bd7a
2024-07-03 10:13:47 +00:00
Bas Leijdekkers
eda10a8961
Java: update api list for java 22
...
GitOrigin-RevId: 21e13a522e2e70337d7e49dc79cce796e1f4bf8b
2024-07-03 10:13:47 +00:00
Bas Leijdekkers
6916b6b005
Java: better error message when there are more arguments than parameters (IDEA-336129)
...
GitOrigin-RevId: a17a5f0f3878b9baf211737a614d1aa1a5103d31
2024-06-28 17:14:56 +00:00
Bas Leijdekkers
d1f0e0880a
Update "Unused declaration" messages for increased clarity
...
GitOrigin-RevId: 8bb4dd31d51f3cc4fb63c36579bd3078f6f622f7
2024-06-21 09:13:05 +00:00
Tagir Valeev
522f2ab43e
[i18n] Fix internationalization warnings
...
GitOrigin-RevId: 7b4a959cf215d79d86d6d9a7727f0fc054097517
2024-06-18 13:46:50 +00:00
Tagir Valeev
567e0b0d05
[java-intentions] IDEA-270206 Nullability annotation at type parameter/wildcard: add a quick-fix to move it to the bound
...
GitOrigin-RevId: e8e56c2d27a77414045064c784f48ff712ad0d2d
2024-06-14 16:05:02 +00:00
Vladimir Krivosheev
cf88750587
UastMetaLanguage - do not use static init
...
GitOrigin-RevId: 6573f40b8c9091977178b5b9efcacc0b07dc0084
2024-06-14 13:10:28 +00:00
Vladimir Krivosheev
6334491a93
refactor UastMetaLanguage
...
GitOrigin-RevId: c619a349e34f476351deeba9f92c7019c6919601
2024-06-14 13:10:28 +00:00
Vladimir Krivosheev
bfbfabca59
Rename .java to .kt
...
GitOrigin-RevId: 2d45cdc76b86c2e788bf42913c5ab24ae07729ce
2024-06-14 13:10:28 +00:00
Bas Leijdekkers
7225738dae
inspections: more clear presentation for unused declarations
...
GitOrigin-RevId: c60846f8be2cc4e33fa525e6bc39123b3d1e89b3
2024-06-04 00:44:50 +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
f668f5a02e
[java] javadoc
...
GitOrigin-RevId: 079f44c6020a1eeb86126e93e08697aca5a7658c
2024-05-23 12:46:43 +00:00
Tagir Valeev
8fad668268
[java-inspection] IDEA-345669 Report value compared to itself with == or !=
...
GitOrigin-RevId: 601c0bb6c5beddaace52d3b094506d2229195d37
2024-05-15 15:55:21 +00:00
Tagir Valeev
ee495db972
[java-intentions] MoveMembersIntoClassFix: improve and revive property test
...
After implicit classes, out-of-class member is parsed. If it was mistakenly put out of the class, it may have many unrelated compilation errors. E.g. extra Override annotation, unresolved reference (to another member of the class), etc. These errors were masking the 'Move member to class' action, because its scope was larger (the whole method).
Now, we put 'feature not available' error specifically to the method/field name identifier, so it's almost always available. Also, action name is more friendly now, and JavaOutOfClassDefinitionPropertyTest is tuned: caret position and language level set correctly.
GitOrigin-RevId: 39917d11fb216be4db3f6fbc9e984ca7378f7302
2024-04-23 10:35:24 +00:00
Tagir Valeev
a3e3ed8591
[java-highlighting] Remove extra space
...
GitOrigin-RevId: 98a9c2395ef5f9605d39029dfe5e695d76c4237e
2024-04-23 09:43:59 +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
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
Bas Leijdekkers
9e22b48c16
[java] show containing file name of implicit classes in batch inspection results (IJ-CR-130524)
...
GitOrigin-RevId: 280b18e1a50ed18db8dfcc79ce95dc2d9669f9df
2024-04-03 14:14:27 +00:00
Tagir Valeev
15c815e7e2
[java-analysis] LanguageLevelUtil: cosmetic, javadoc
...
GitOrigin-RevId: f3fe627da3d6a72b94d88e2bb3bd945ad9d148ae
2024-04-03 09:29:41 +00:00
Bart van Helvert
fdbb442f08
[java] Fix getForbiddenApi doc
...
GitOrigin-RevId: 8db2036887fba88a69dd61b09761ca07422a15f4
2024-04-02 13:11:17 +00:00
Bart van Helvert
ee73aef512
[java] Only log when API file can't be found for non-highest language level
...
Makes it possible to add API files for language levels higher than the current HIGHEST like preview levels.
GitOrigin-RevId: 0b6b572609238d5015ca2361fb8ab59df35d088f
2024-04-02 13:11:12 +00:00
Bas Leijdekkers
ab2af3d314
[java] don't show implicit classes as "anonymous" in batch inspection results (IDEA-334425)
...
GitOrigin-RevId: 1c636b01743409c25ef084faca47f34b0127ff4d
2024-04-01 10:52:12 +00:00