18 Commits

Author SHA1 Message Date
Mikhail Pyltsin
330ba98e01 [java] IDEA-354964 Migrate standard descriptors like JAVA_21 to TYPE_USE annotations
- fix NullableManager, when it can't find annotation in type

GitOrigin-RevId: 121927429534971abb4a50d1f670afbed9384045
2024-06-26 20:34:48 +00:00
Georgii Ustinov
bea3fefda2 [Java. Code Formatting] Restore caret in files for AnnotateMethodTest#testAfterDoNotAnnoI
IDEA-353192

GitOrigin-RevId: 5f930ffb06158c40e786cd948c8f8d0982e61814
2024-06-21 15:13:57 +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
Georgii Ustinov
a4d5e41d7f [Java. Code Formatting] Rewrite the way of detection type annotation in JavaFormatterUtil
IDEA-353192

GitOrigin-RevId: 34e375e4e1e059be03aad12c2839911b8315ed06
2024-06-04 06:46:24 +00:00
Georgii Ustinov
3b50806cf1 Revert formatting type annotations on the same line before the type in method
IDEA-353192 IDEA-354026

GitOrigin-RevId: cbf3e0b332517194f35d979a631cbbb0121893b4
2024-06-01 09:59:49 +00:00
Georgii Ustinov
77bfbe1b39 [Java. Code Formatting] Fix tests which relied on old version of Nullable/NotNull annotations
IDEA-353192

GitOrigin-RevId: f913b37c8fb9c7c754d7c6fcd5c1cdd215a7f295
2024-05-17 11:16:41 +00:00
Tagir Valeev
66d3646f6d [java-inspections] IDEA-331613 "Overridden parameter annotations" lint should be "Overriding"
GitOrigin-RevId: 7234832a572304695efe2fd21af60127679715df
2023-09-15 10:19:11 +00:00
Bas Leijdekkers
9addc5eaf7 java: include parentheses () in text when referring to methods
GitOrigin-RevId: 1cfc8afb26b5db175d865f6bbdc752356040d8bb
2022-08-22 17:58:06 +00:00
Bart van Helvert
2a86552363 [java-inspections] Add quotes to annotations in inspection messages
GitOrigin-RevId: a2d102bb75c6f0f213cfe79928909f8501be6ca7
2022-08-04 13:39:06 +00:00
Tagir Valeev
9c6aeba5b4 [java] More tests for preview; minor fixes
GitOrigin-RevId: 7f72c5f68ab821e728eb0d5152f0910f48035046
2022-07-22 11:54:00 +00:00
Nikolay Chashnikov
9c66641799 [java] remove redundant import when "Remove annotation" quick fix is applied (IDEA-288488)
GitOrigin-RevId: 562cf18eafa636a761c75ae3e9630bdab3eff760
2022-02-11 09:25:51 +00:00
Tagir Valeev
32442ebe48 [java-inspections] IDEA-288528 Add a quick-fix to correct typeuse nullability annotation
GitOrigin-RevId: ac4d271bc6e43306532d201e74fcf6e9f7b2e6ae
2022-02-11 08:30:20 +00:00
Tagir Valeev
2c486b2d0a Improved type annotation support
PsiTypeElementImpl#addAnnotation implemented
AddAnnotationPsiFix, NullableNotNullManager adjusted
Fixes IDEA-232258 "Annotate overridden method parameters @NotNull" erroneously adds notNull to the param, not its type
Fixes IDEA-232565 Intention "Annotate overriding methods as NotNull" doesn't respect "type use"
Also, AddAnnotationPsiFix can be applied in batch now when annotations are not external.

GitOrigin-RevId: 0b652d3b032ed0d1c701beeda102c5e3c841762c
2020-02-12 06:13:13 +00:00
peter
4dc12ddb60 update AnnotateMethodTest data 2017-08-08 16:41:09 +02:00
Dmitry Batkovich
ca93a04a0a simplify AnnotateMethodFix 2017-08-03 15:42:34 +03:00
Alexey Kudravtsev
8037bdbfd1 annotate method if asked even it's (implicitly) inferred as NotNull 2017-06-29 15:55:13 +03:00
Bas Leijdekkers
8ff3af2a35 Simplification of "@NotNull/@Nullable problems" inspection settings 2011-09-09 15:53:55 +02:00
Alexey Kudravtsev
2718da9fc7 more java tests moved to community 2010-06-25 12:46:40 +04:00