Tagir Valeev and intellij-monorepo-bot
ac0c57748b
[java-inspections] IDEA-346005 Add new inspection: Unnecessary keySet() call
...
GitOrigin-RevId: d1f1db0ae939017a8550b91cd8742dc222a8db99
2024-09-17 07:28:39 +00:00
Yuriy Artamonov and intellij-monorepo-bot
47f1c44a90
[java] IJPL-158521 Actions: fix ellipsis in messages for Java actions
...
GitOrigin-RevId: bfce0d6efa8747660c4b9af3d8defbfa47e4509a
2024-09-15 14:50:09 +00:00
Bas Leijdekkers and intellij-monorepo-bot
028d526405
Java: fix false positive when using java 21 pattern matching (IDEA-357175)
...
in "'equals()' should check the class of its parameter" inspection
GitOrigin-RevId: f84071ea339bf690eadcba60d491eebe4cb21a7e
2024-09-05 15:02:58 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
dd822c1bc7
IJ-CR-142710 [java-inspections] IDEA-357725 LoggerInitializedWithForeignClassInspection should skip when the logger is not the final field
...
- fix texts
GitOrigin-RevId: 85d86f362ce860118d2a047321bf4916e01757da
2024-09-02 18:36:41 +00:00
Bas Leijdekkers and intellij-monorepo-bot
7db980cfcf
Java: remove unneeded ':' from inspection problem report
...
GitOrigin-RevId: 9b0c070c8ca2a883d0d07f0064b67f22594cbced
2024-08-21 09:12:08 +00:00
Bas Leijdekkers and intellij-monorepo-bot
bd7f1f4270
Java: proper order of 'true' and 'false' in quick-fix name (IDEA-357973)
...
also fixes internationalization and the incorrect comma in the name
for "Create missing switch branches" quick-fix
GitOrigin-RevId: 16285e054447d8d15318df8889499bbbf91243a7
2024-08-21 09:12:08 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
c56e5e7313
[java-inspections] IDEA-357725 LoggerInitializedWithForeignClassInspection should skip when the logger is the final field
...
GitOrigin-RevId: e910d9bb094f058c363148a3d08b695276bcc2c6
2024-08-15 18:02:00 +00:00
Mathias Boulay and intellij-monorepo-bot
abd7b1dded
fix(JDoc): Formatting and inspections issues
...
GitOrigin-RevId: 910e9b3335fa7c3967fb79893ecba7c69595a201
2024-08-14 18:24:38 +00:00
Bas Leijdekkers and intellij-monorepo-bot
f40ed914fb
Java: fix "Missorted modifiers" options and messages
...
GitOrigin-RevId: ab41b6c1d135c9b788feeec4a273a6f483b9bfa5
2024-08-12 13:37:26 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
cb37003541
[java-inspections] IDEA-357323 Propose case null during adding all cases
...
GitOrigin-RevId: 6d7ffccc28d64ed0f52db0235c41796d1d81284e
2024-08-09 11:00:42 +00:00
Bas Leijdekkers and intellij-monorepo-bot
91cff4a4f1
Java: inspection for migration to Markdown documentation comments (IDEA-357191)
...
GitOrigin-RevId: 94d6c21d713073df58e2f6fb2bbd348a7039b9ce
2024-08-08 20:19:46 +00:00
Bas Leijdekkers and intellij-monorepo-bot
488e4a01bf
Java: grammar
...
GitOrigin-RevId: 2fa00e04420bd0fb6a4826ccf35570c5ae017126
2024-08-08 20:19:46 +00:00
Tagir Valeev and intellij-monorepo-bot
3521c7ac6c
[java-inspections] EqualsWithItselfInspection: fix description (IDEA-355789)
...
GitOrigin-RevId: ce48c8a535717b2b433078f43909b2f28084d360
2024-07-26 11:03:19 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
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
Tagir Valeev and intellij-monorepo-bot
d52f6c789f
[java-dfa] IDEA-355908 Add new mutation contract option: io
...
GitOrigin-RevId: 206fae268d8444d475a4feac6ebc5ef96ffc57bb
2024-07-04 21:05:23 +00:00
Tagir Valeev and intellij-monorepo-bot
a90638139a
[java-inspections] IDEA-355789 'equals()' called on itself: disable for comparator contract test
...
GitOrigin-RevId: e378fb4b0a2e76698f09c911bc2cce75abead793
2024-07-02 16:37:40 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
09c7c9e6e8
IJPF-CR-23473 [java-generation] IDEA-344399 generate annotation based on type_use option
...
-fix wording
GitOrigin-RevId: d29bb07acb1c739a3fc5d7563b89b6c52d5bfec2
2024-06-21 18:07:32 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
2023228d8c
[java-generation] IDEA-344399 generate annotation based on type_use option
...
- extracted new option
- reuse this option in MissortedModifiersInspection
- override uses this option too
GitOrigin-RevId: 39f3f72991240753c86c7f80df865728aa9743ad
2024-06-17 21:14:57 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
7e047434f3
IJ-CR-130369 [java-inspections] IDEA-197280 Non-constant string concatenation as argument" could also be triggered for String.format
...
- change description
GitOrigin-RevId: 0924d1165a47e2d40f3b245adfdc8252f2768f25
2024-05-24 21:18:23 +00:00
Tagir Valeev and intellij-monorepo-bot
5cc297d7ea
[java-inspections] IDEA-353938 Report ignored object allocations inside method references
...
GitOrigin-RevId: 1261b9bdb64bec0269fe7d0ffb2ac634e1494e81
2024-05-23 11:08:49 +00:00
Tagir Valeev and intellij-monorepo-bot
f6abeeb22f
[java-inspections] Rename 'if' statement with identical branches inspection to avoid confusion
...
GitOrigin-RevId: 9bb40bf9b593744130c17c5b0cc14d7c67740729
2024-05-13 13:49:05 +00:00
Bas Leijdekkers and intellij-monorepo-bot
cfbb00fa01
java: improve some inspection texts
...
GitOrigin-RevId: 5a0670e84850599d8107f206b76eee1f8f84de17
2024-04-25 13:49:54 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
0e4caec126
[java-inspections] IDEA-337706 Support conversion System.out to log calls
...
- fix quick-fix message
GitOrigin-RevId: 0e81b3efffaa4af7fb739b72ee232ea68665a40e
2024-04-14 18:41:14 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
d8f8800d93
IJ-CR-131028 [java-inspection] IDEA-310469 Java inspection for "Pattern variable can be used" does not find all cases
...
- rename option
GitOrigin-RevId: 26dc0cfa17c438aa8e41fcc9d52d764573814021
2024-04-14 18:28:41 +00:00
Bas Leijdekkers and intellij-monorepo-bot
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
Mikhail Pyltsin and intellij-monorepo-bot
00351758c5
[java-inspection] IDEA-310469 Java inspection for "Pattern variable can be used" does not find all cases
...
- support more cases
GitOrigin-RevId: 28301b79d4c4acd343a35474d1ab44096dcea8cd
2024-04-09 15:49:16 +00:00
Bas Leijdekkers and intellij-monorepo-bot
bcbd01ca20
[java] ignore non-serializable fields in enums (IDEA-274137)
...
GitOrigin-RevId: 2268d012377931be155463a846f7a257208d7e1d
2024-04-08 09:55:33 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
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 and intellij-monorepo-bot
a750ec4eb0
[java-inspections] IDEA-197280 Non-constant string concatenation as argument" could also be triggered for String.format
...
- Support simple cases for String.format
- Support simple cases for MessageFormat.format
GitOrigin-RevId: 50f52f526923950e30746691414bb89ce5fca5ab
2024-03-29 18:34:16 +00:00
Bas Leijdekkers and intellij-monorepo-bot
4352c5247a
[java] add option to ignore single argument substring() calls (IDEA-345335)
...
GitOrigin-RevId: 967ada74b5354561b8a32f00484f21bae2d05d51
2024-03-21 11:05:13 +00:00
Bas Leijdekkers and intellij-monorepo-bot
842f3972ac
[Java] remove "'StringBuilder.toString()' in concatenation" inspection (IDEA-349211)
...
GitOrigin-RevId: 067a8544b08d392bb8f758fd53acd974355c298e
2024-03-18 00:08:43 +00:00
Evgenii Ilichev and intellij-monorepo-bot
69d23200e6
[localization] move QuickFixBundle.properties to the resources root
...
GitOrigin-RevId: f08ba8d00e62099a82ea49e41e933b5a76a98bb6
2024-03-12 00:18:40 +00:00
Tagir Valeev and intellij-monorepo-bot
52f3712ce2
[java-inspections] IDEA-345407 Some actions inside string template with language annotation lead to exceptions
...
GitOrigin-RevId: b14296a9785210511c22281a29f177d9d9ff752b
2024-02-24 12:21:45 +00:00
Tagir Valeev and intellij-monorepo-bot
cd74781a9d
[java-inspections] IDEA-345238 Duplicate conditions: respect mutation signature
...
GitOrigin-RevId: b9271196151e985b5147b9264ea73d8e3118b59a
2024-02-07 00:30:20 +00:00
Bas Leijdekkers and intellij-monorepo-bot
45b7fca0a8
Java: recognize unnecessarily qualified static access when member is from a super class (IDEA-342646)
...
GitOrigin-RevId: d6a64afd32c184ab4556cdfb1a6c5b1a14d37b58
2024-02-03 19:52:26 +00:00
Tagir Valeev and intellij-monorepo-bot
0fec0c3bed
[java-inspections] MismatchedStringCase: make message more technically correct (IDEA-342568)
...
GitOrigin-RevId: 6cf795e29b18e043d7a08a3263c26badd45dbdc7
2024-01-22 10:54:22 +00:00
Bart van Helvert and intellij-monorepo-bot
271d362d14
[junit] Move Java JUnit inspections into JUnit plugin
...
#IDEA-341929 Fixed
GitOrigin-RevId: 7dd42203f64380382b3d39c77a409fe652b09941
2023-12-28 23:17:28 +00:00
Bas Leijdekkers and intellij-monorepo-bot
488935ecea
Java: wording "anonymous inner class" -> "anonymous class"
...
GitOrigin-RevId: f03d7227721f41dc64a19c647762580b6eb9f159
2023-12-28 17:40:19 +00:00
Bas Leijdekkers and intellij-monorepo-bot
06bfde0897
Java: enable "Anonymous class can be replaced with inner class" inspection by default at information level (IDEA-341832)
...
GitOrigin-RevId: 4d5616004282fba912228d4afd082dfd0aeb92eb
2023-12-28 17:40:15 +00:00
Bas Leijdekkers and intellij-monorepo-bot
db953d1a59
Java: add quick-fix to "Local class" inspection and enable by default at information level (IDEA-341832)
...
GitOrigin-RevId: 57c018ee9e1c55031957d06b417cc0e192c83c9b
2023-12-28 17:40:06 +00:00
Bas Leijdekkers and intellij-monorepo-bot
fb29b4a8f5
Java: remove some unused properties
...
GitOrigin-RevId: 5596e0f45c7e187ca2888a2b19c016b8fe74ae35
2023-12-11 15:43:15 +00:00
Karol Lewandowski and intellij-monorepo-bot
ad246cb491
IDEA-337709: Reimplement SuppressionAnnotationInspection to UAST
...
GitOrigin-RevId: 5384975e4786fbc34114065e117f66d930435621
2023-11-27 18:29:28 +00:00
Aleksey Dobrynin and intellij-monorepo-bot
e5b2194515
[java, inspection] new inspection "while can be do-while" IDEA-250650
...
GitOrigin-RevId: bd2bd0053500b98a316330b08481018825e9211f
2023-11-13 17:41:19 +00:00
Tagir Valeev and intellij-monorepo-bot
1a3dd4a6bb
[java-inspections] AutoCloseableResourceInspection.AutoCloseableResourceFix: mod-command, preview, test
...
GitOrigin-RevId: 4cbd950abb071866e6f511b5743372f6d60051be
2023-11-03 18:10:50 +00:00
Mikhail Pyltsin and intellij-monorepo-bot
3d7a18e986
[java-highlighting] IDEA-315469 Quickfixes for switch labels with 'default'
...
- fix to reverse 'case default, null'
- fix to replace 'case default' with 'default'
GitOrigin-RevId: 3762a40c859bb7a13a638614b3200b0005d8e85a
2023-11-01 10:23:57 +00:00
Tagir Valeev and intellij-monorepo-bot
679de5d46d
[java-inspections] ConstantExpression inspection proof-reading
...
GitOrigin-RevId: 5e97937a479a98dd302757d3539703353dc253cc
2023-10-20 19:12:58 +00:00
Georgii Ustinov and intellij-monorepo-bot
883f800574
[Code Analysis. Inspection] IDEA-234302 System.getProperty(str) inspection implementation. Review Refactor
...
GitOrigin-RevId: e793b2306586a3ea6e12691b5d887fe1cf0b2913
2023-09-22 13:59:38 +00:00
Georgii Ustinov and intellij-monorepo-bot
0382910261
[Code Analysis. Inspection] IDEA-234302 System.getProperty(str) inspection implementation.
...
Call to System.getProperty(str) could be simplified for certain predefined constants. Implementation includes inspection and quickfix.
GitOrigin-RevId: 8b7edf6c4a6849062535ded1c49e733b8fed05a8
2023-09-21 19:51:28 +00:00
Aleksey Dobrynin and intellij-monorepo-bot
ef437cfdab
[java, inspections, fix] IDEA-323920 IJ-CR-114719
...
- added check to prevent red code highlighting
- fixed memory leak
- renamed fix a message to be more descriptive
- changed LocalQuickFix to PsiUpdateModCommandQuickFix for consistency
GitOrigin-RevId: 2e96e40fa9e9ddd8596bcf34332d95af785a2ce0
2023-09-13 11:49:01 +00:00
Aleksey Dobrynin and intellij-monorepo-bot
992f81a880
[java, refactorings] reduce number of options in "Type may be weakened" inspection (doNotWeakenToJavaLangObject) IDEA-266696
...
GitOrigin-RevId: 6b10989645bad435b9fb5bdfc30b5e814a19165d
2023-09-13 11:32:04 +00:00