Commit Graph

22575 Commits

Author SHA1 Message Date
Mikhail Pyltsin
75d5071519 IJ-CR-145484 [java-highlighting] IDEA-358686 Moving file from outside of source roots doesn't help to remove banner
- fix leaking

GitOrigin-RevId: 9e3d6e9f1806b5ba1d9cbe019dccd310edcc713d
2024-09-30 13:17:30 +00:00
Sergei Vorobyov
e3da0bb5d9 [Java|Gradle|Sync] cleanup: renamed JarTaskManifestConfiguration to JavaGradleManifestModel
GitOrigin-RevId: c898c9ac1a1d7dd9e20efecb9e7908f201b6d43e
2024-09-27 18:39:57 +00:00
Mikhail Pyltsin
f474d8047b IJ-CR-145218 [java-inspections] IDEA-201932 Provide inspection to highlight redundant creation operations in java date time api
- combine into one inspection
- fix messages

GitOrigin-RevId: d4e064948f8c730c4d68c58e6c9b1277c6b66b4d
2024-09-27 17:12:29 +00:00
Louis Vignier
7167a30f5a [java] Fix PackagePanel UI
#IDEA-359163

GitOrigin-RevId: 6d8ebadc2c2cf33e7fe3fef097bfa65e2d7b1ec6
2024-09-27 16:55:46 +00:00
Louis Vignier
a2383b8fc8 [java] Fix ImportLayoutPanel UI
#IDEA-359163

GitOrigin-RevId: 4df084dec0efac8c35e91c246c2ae1f9f89605e2
2024-09-27 16:55:46 +00:00
Louis Vignier
1085339b3f [java] Fix vertical space distribution in CodeStyleImportsBaseUI
#IDEA-359163 Fixed

GitOrigin-RevId: 55ca69c61c6404d83b5673531f4f920ae21d1f1d
2024-09-27 16:55:46 +00:00
Louis Vignier
6861209161 [java] Fix column width for ImportLayoutPanel
#IDEA-359163

GitOrigin-RevId: ab58304fdd9b4d528e3d205dad8ac4671ed10c1a
2024-09-27 16:55:46 +00:00
Bart van Helvert
690f1167ff [java] Don't suggest generating broken overload constructors
In implicit and anonymous classes, constructors can't be declared. #IDEA-359731 Fixed

GitOrigin-RevId: 76e978d04052dffd955bfac6c1016fa707201b29
2024-09-27 16:07:34 +00:00
Tagir Valeev
087825794e [java] IDEA-359811 Support experimentally container annotation @NotNullByDefault
GitOrigin-RevId: 0f02149f8f9313357bab47e7d62d6f1ccfea6f9b
2024-09-27 10:37:49 +00:00
Tagir Valeev
70b05eb272 [java] JSpecifyAnnotationSupport: cosmetic
GitOrigin-RevId: 50793788695f215c0be5492fd509c1f3f94d90b8
2024-09-27 10:37:49 +00:00
Mikhail Pyltsin
72339b904d IJ-CR-145484 [java-highlighting] IDEA-358686 Moving file from outside of source roots doesn't help to remove banner
- simplify using `FileEditorManager.getInstance(project)`

GitOrigin-RevId: d00f4fb3733ad9afe060928d7fd736c2107fb2de
2024-09-27 09:33:50 +00:00
Mikhail Pyltsin
9eb0e15e2c IJ-CR-145121 [java-inspections] IDEA-357009 new option to configure custom classes for IncorrectMessageFormatInspection
- fix table for `IncorrectMessageFormatInspection`

GitOrigin-RevId: 272d89fafaac63517e990b1d2808ec54d4c58e69
2024-09-27 09:33:50 +00:00
Vladimir Krivosheev
36f6f0c783 move generateToString to java dir, where it belongs
GitOrigin-RevId: 980ae5f7315c9fae2640a31b3bec9b908ccd2f10
2024-09-27 08:05:50 +00:00
Nikita.Lyubimov
8bab85c941 [RIDER] Convert InvertBooleanDelegate to LanguageExtension and make it visible only in supported languages (fix RIDER-117948)
(cherry picked from commit 3a255ec3c42321ec72f4431dea87ae42c1676146)

IJ-CR-145564

GitOrigin-RevId: 13bc1936ceacb3d82585a34c9b0553b13b368259
2024-09-26 15:59:17 +00:00
Vladimir Parfinenko
4c63e241d2 [debugger] intention to control exception breakpoints in editor, IJPL-161898
GitOrigin-RevId: 74a8cd67b65e433aae9012672dd9f8e92f2fb839
2024-09-26 13:42:39 +00:00
Bas Leijdekkers
6c2a3df811 Java: generated equals(), hashCode() and toString() can now use getters in records as well (IDEA-359692)
GitOrigin-RevId: d94b6278d61e5a0497a402c8201e31d9165691ab
2024-09-25 21:53:25 +00:00
Bas Leijdekkers
d74484e368 Java: enable "Record pattern can be used" by default at warning level (IDEA-359690)
and make it a cleanup tool.

GitOrigin-RevId: 3bb400491d44ab901660d900c6ce73e76bdf6261
2024-09-25 21:53:25 +00:00
Bas Leijdekkers
7fbe663b37 Java: don't add instance check when generating equals() (IDEA-357686)
GitOrigin-RevId: 21a0555c2fe6be705fe4d510c8d8d08238af4585
2024-09-25 21:53:25 +00:00
Mikhail Pyltsin
af8f6549d7 IJ-CR-145484 [java-highlighting] IDEA-358686 Moving file from outside of source roots doesn't help to remove banner
- move under condition if editor is found

GitOrigin-RevId: 4b92b98f1a9b4eb162c5dbb794de1549c2890979
2024-09-25 16:31:44 +00:00
Mikhail Pyltsin
1fc7f0a285 [java-inspections] IDEA-359651 Exception when trying to convert System.out.println to log call with injection
GitOrigin-RevId: e13120329ccacda5fd4c47119e08d5efb3cd2455
2024-09-25 09:24:37 +00:00
Mikhail Pyltsin
cd9417370a [java-highlighting] IDEA-358686 Moving file from outside of source roots doesn't help to remove banner
- add listeners to check moved files

GitOrigin-RevId: fcf12908e34d62b981c38ff7ed2469da712e42fc
2024-09-25 09:24:37 +00:00
Max Medvedev
9703f0421a fix mixed-up error messages for navigation to overriders during indexing
GitOrigin-RevId: 86bfabf3f3e7c04b9f5b8eb96beedde560081556
2024-09-25 08:05:03 +00:00
Tagir Valeev
9ff91e1fc3 [java] IterableComponentTypeMacro: remove external annotations
GitOrigin-RevId: 9c580d3871e8d8353a4d10a341b88098dfb6ef19
2024-09-25 08:04:53 +00:00
Tagir Valeev
208b57b0b7 [java-inspections] ProtectedMemberInFinalClass: do not report if hierarchy is unresolved
GitOrigin-RevId: 62796075b86adbf9fb26b81e46cbeb9aa0ea831f
2024-09-25 08:04:53 +00:00
Bas Leijdekkers
5b375ff7a2 Java: "'equals()' called on 'BigDecimal'" is no longer a cleanup tool (IDEA-354348)
sind replacing BigDecimal.equals() calls with BigDecimal.compareTo() calls slightly changes the semantics which can cause bugs

GitOrigin-RevId: 2a2d147b0953e1616e028ada8d7de369fe3da0b1
2024-09-24 20:21:56 +00:00
Bas Leijdekkers
7438be23bf Java: show template chooser even when only generating hashCode() method (IDEA-358888)
GitOrigin-RevId: ea75062115e3f0bece21921b795b7ef92058960c
2024-09-24 20:21:56 +00:00
Tagir Valeev
6b9761a58d [javadoc] Fix external type annotation rendering for decompiled source
Part of IDEA-231901 Support TYPE_USE in external annotations

GitOrigin-RevId: d2f64e758b269d3282fbd6f7afc13e430b24f57a
2024-09-24 11:13:21 +00:00
Tagir Valeev
f6e20dab03 [java-inlays] Support external type annotation inlays
Part of IDEA-231901 Support TYPE_USE in external annotations

GitOrigin-RevId: 0474e537913e85c49331c2f3f64feaf3947083bb
2024-09-24 11:13:21 +00:00
Maksim Zuev
d00c427235 [debugger, devkit] IDEA-355621 Show read/write action status of a debugee IDE in the variables view
Merge-request: IJ-MR-143621
Merged-by: Maksim Zuev <Maksim.Zuev@jetbrains.com>

GitOrigin-RevId: 140ad9b994d803776f9b1cae752f99b612a0236e
2024-09-23 15:07:25 +00:00
Mikhail Pyltsin
f73a4d96be [java-inspections] IDEA-201932 Provide inspection to highlight redundant creation operations in java date time api
GitOrigin-RevId: 6b246167dda52272122d356c3f6a787eab5a2542
2024-09-20 14:10:17 +00:00
Tagir Valeev
be4f6cd282 [java-inspections] Redundant keySet()/values(): support entrySet(); avoid warning inside Map implementations (IDEA-346005)
GitOrigin-RevId: ebf925ab3ff7c1357248a65201fe654aada0f4e8
2024-09-19 19:06:26 +00:00
Tagir Valeev
bfce6888cb [java] ImmutableCollectionModelUtils: remove external annotations from variable
GitOrigin-RevId: 6c4da7c385b05f50aac1952f110d95f0e425523a
2024-09-19 19:06:25 +00:00
Bas Leijdekkers
ba90fcc173 Java: make auto-import action available on method references to non-static methods (IDEA-336191)
GitOrigin-RevId: 2441af053858efe56887a5ea8dc34cfd08878261
2024-09-19 17:29:43 +00:00
Alexander Bubenchikov
d655523012 [maven] [IDEA-349045] added baseVersion field to MavenCoordinates
GitOrigin-RevId: 9b59fb8acea3f714600ebc1bb161f56b3bb385ef
2024-09-18 17:19:50 +00:00
Mikhail Pyltsin
3001c41aed [java-inspections] IDEA-357938 try to infer logging type inside methods for StringConcatenationArgumentToLogCallInspection
GitOrigin-RevId: a09f433bdc1cbed3c81ee4fab6f4986b5ada4271
2024-09-18 14:42:24 +00:00
Mathias Boulay
0cdf89293d fix(jdoc): inline mk structs break detection
GitOrigin-RevId: 0cb1adbd59262523ce59767fee5f33e78234bd9f
2024-09-18 14:34:29 +00:00
Mathias Boulay
3b13ef3ec1 fix(jdoc-render): <pre> detection too strict
GitOrigin-RevId: d8d2125e5d5ffba9d83bef6fa812c94259945e65
2024-09-18 14:34:29 +00:00
Tagir Valeev
1d83886b74 [java] ExternalAnnotationsManager.findExternalAnnotations: NotNull
GitOrigin-RevId: cbd3821a7d6d43d7a0c77039312b612ee0137b73
2024-09-18 12:08:08 +00:00
Tagir Valeev
aee119040c [java] ExternalAnnotation converted to record
GitOrigin-RevId: 7113a9b329c79e80216c1f8400701af6fe813d79
2024-09-18 12:08:08 +00:00
Mathias Boulay
d6d13853e6 feat(javadoc-handler): auto insert end of code fence
GitOrigin-RevId: 24c855a125c859bcc80f43c93a7d6c57ec9e3586
2024-09-17 16:28:17 +00:00
Mathias Boulay
027d4fb022 fix(javadoc-handler): insert leading tokens before start of comment
GitOrigin-RevId: 2fc351433f7841f9753d67e2a8d925a9991a1716
2024-09-17 16:28:17 +00:00
Mathias Boulay
68242cd5b9 fix(javadoc-gen): @code tag rendering full line
Turns out there was another edge case that the ones from the Youtrack issues.

GitOrigin-RevId: 6bccd3d0aa4fc121059558b847ba90731d9c8962
2024-09-17 16:28:17 +00:00
Mathias Boulay
e05667345c fix(javadoc): Missing character on new lines within snippets
#IDEA-358874 Fixed

GitOrigin-RevId: e03874f588e31c106d3a25518c05e0850b3fcd24
2024-09-17 16:28:17 +00:00
Anna Kozlova
d67c2fc0a3 [kotlin] accept non java targets in jvm-class-name injection
^KTIJ-31289 fixed

GitOrigin-RevId: 45d800d7871e5c6589f80fb6bc932378a3702c30
2024-09-17 12:02:34 +00:00
Tagir Valeev
ac0c57748b [java-inspections] IDEA-346005 Add new inspection: Unnecessary keySet() call
GitOrigin-RevId: d1f1db0ae939017a8550b91cd8742dc222a8db99
2024-09-17 07:28:39 +00:00
Gregory.Shrago
4bed7454d8 add knownIssue section for top issues
GitOrigin-RevId: eff01ab98fd019a2454c72e29082cbdf1af0f984
2024-09-17 04:19:24 +00:00
Mikhail Pyltsin
f7b4abaa1f IJ-CR-144148 [java] IDEA-358751 Java Annotations copied to generated getter / setter
- move settings to JavaRefactoringSettings
- rename to GetterSetterGenerationOptions

GitOrigin-RevId: 09c8d01ba66f3d88583cb609ee8317bf90c222c8
2024-09-16 17:10:39 +00:00
Georgii Ustinov
507ae5bd17 [Java. Logging] Simplify logic of JvmLoggerCompletionContributor
IDEA-359199

GitOrigin-RevId: 946fcfa18dedd03905e6f8a638ae0a86c3515b75
2024-09-16 12:19:41 +00:00
Tagir Valeev
2740f59e58 [java] getClsFileNavigationElement: remove unconditional cast to ClsClassImpl
It looks like it may fail for groovy files
Should fix IDEA-357074 CCE: JavaPsiImplementationHelperImpl.getClsFileNavigationElement

GitOrigin-RevId: e577b8a456d91837e5d5742808db0c9969902ee3
2024-09-16 11:23:15 +00:00
Tagir Valeev
037c7339b0 Make DocCommentPolicy non-generic; type parameter is not very useful here
GitOrigin-RevId: e5c1e431e67c1aeb24a237172aaee85b37433cd3
2024-09-16 11:23:15 +00:00