Dmitry Batkovich
47916ce80b
SuperClassHasFrequentlyUsedInheritorsInspection cleanup
2016-12-05 16:10:32 +03:00
Pavel Dolgov
06cc032edf
Java: Created an inspection (with a quick fix) that checks if a package is exported to the same module where it's declared. Tests added. (IDEA-164129)
2016-12-05 13:19:24 +03:00
Anna.Kozlova
ea5cfbb0d9
implicitly written field: fix to register annotations (IDEA-164948)
2016-12-02 17:52:28 +01:00
Anna.Kozlova
955ed1e8b2
more accurate error messages for field refs (IDEA-164919)
2016-12-02 17:52:28 +01:00
Roman Shevchenko
1c85f8cd15
[java] fixes soft keyword highlighting in source and .class files (IDEA-164939)
2016-12-02 17:50:02 +01:00
Roman Shevchenko
32d96f6a29
[java] fixes soft keyword highlighting in source files (IDEA-164939)
2016-12-02 15:44:44 +01:00
Anna.Kozlova
382b78aeca
unrelated defaults: check if current class contains explicit method (IDEA-164732)
2016-12-02 11:51:07 +01:00
peter
f4c3698632
make dfa inspection JspWhileStatement-friendlier (IDEA-18499)
2016-12-01 17:29:05 +01:00
Anna.Kozlova
4e75eeae21
suspicious call: type of new expression must be assignable otherwise it's suspicious (IDEA-164816)
2016-12-01 16:52:02 +01:00
Pavel Dolgov
0ba6caa000
Java: Check if 'java.base' is explicitly required in the inspection "Redundant 'requires' statement in module-info". Minor refactoring of RefJavaModule, to make the inspection code more straightforward. (IDEA-163139)
2016-12-01 13:29:10 +03:00
Anna.Kozlova
1732f58088
disable method reference replacement with qualifier (IDEA-164723)
2016-12-01 10:39:31 +01:00
Dmitry Avdeev
c0349c4953
IDEA-161959 Regression: Null checks in JSPs are not working any more
2016-12-01 12:32:54 +03:00
Vladimir Krivosheev
21cf14973b
use java 8 file api, fix npe in PharLibraryManager
2016-11-29 15:10:35 +01:00
peter
44f0f3f754
correct annotation operating fixes wrt read-only files
...
they can change either the current file or external annotations file
so they should be invoked outside write action
all callees (e.g. suppressions) should honor that
2016-11-29 13:48:40 +01:00
peter
cf4ac26b5d
correct read-only file handling in more java intentions
2016-11-29 13:31:06 +01:00
Tagir Valeev
5bcd2410da
Java8CollectionsApiInspection & Java8ReplaceMapGetInspection merged into Java8MapApiInspection; support method references in computeIfAbsent
...
fix for IDEA-163932 Map.get suggested replacement with Map.getOrDefault is misleading
2016-11-29 13:35:30 +07:00
Anna.Kozlova
d4a9f70ca8
private modifier in interfaces: check for modifier combinations, body (IDEA-164596)
2016-11-28 15:38:48 +01:00
Roman Shevchenko
3dcbdd8982
[java] ambiguous module refs highlighting (IDEA-164553)
2016-11-28 13:38:26 +01:00
Dmitry Batkovich
bf442c391b
java null argument index: always ignore test sources (IDEA-161270)
2016-11-28 13:11:00 +03:00
Roman Shevchenko
e7fd8b0fef
[java] tolerates ambiguous modules in readability analysis (IDEA-164553)
2016-11-25 20:42:50 +01:00
Anna.Kozlova
df3abfd8c3
check constructor only implicitly called constructor (IDEA-164500)
2016-11-25 12:50:54 +01:00
Pavel Dolgov
9049591435
Java: Don't traverse the project twice in the global inspection "Redundant 'requires' statement in module-info" (IDEA-163139)
2016-11-25 13:35:45 +03:00
peter
c7a76623f3
java intentions/fixes 2: make files writable outside write action
2016-11-25 08:58:40 +01:00
peter
d9a8f7cc36
suppression intentions: make files writable outside write action
2016-11-24 16:06:21 +01:00
Pavel Dolgov
a624c87488
Java: Don't use PSI elements in the global inspection "Redundant 'requires' statement in module-info", tests added (IDEA-163139)
2016-11-24 15:14:47 +03:00
Tagir Valeev
7e89cd1ef2
IDEA-164277 "Simplifiable conditional usage of Map.get()" may suggest putIfAbsent() in following case
2016-11-23 13:14:50 +07:00
Tagir Valeev
e60be117ba
CommentTracker#markUsed -> markUnchanged; ReplaceInefficientStreamCountInspection: move comments from .stream() call parameters list outside of resulting .size() parameters list (IDEA-CR-16097).
2016-11-23 11:46:22 +07:00
Anna.Kozlova
fb04c2169b
extract lambda -> method reference to code style settings
2016-11-22 20:22:29 +01:00
Anna.Kozlova
2514f10f0e
lambda -> method ref: allow conversion with any qualifier, show warning only for trivial qualifiers; same for anonymous -> method ref (IDEA-CR-16052)
2016-11-22 20:22:29 +01:00
Roman Shevchenko
5d70ea9fe7
Cleanup (warnings)
2016-11-22 16:55:30 +01:00
Roman Shevchenko
1119ebb595
[java] fixes NPE
2016-11-22 16:32:53 +01:00
Pavel Dolgov
ea457179df
Java: Store Java modules in RefJavaManager for the inspection "Unused 'requires' statement in module-info" (IDEA-163139)
2016-11-22 14:10:31 +03:00
Pavel Dolgov
24e6a97f60
Java: Show preview for the inspection "Unused 'requires' statement in module-info" (IDEA-163139)
2016-11-22 14:10:31 +03:00
Pavel Dolgov
ffa2844520
Java: DRAFT Global inspection "Unused 'requires' statement in module-info" (IDEA-163139)
2016-11-22 14:10:31 +03:00
Pavel Dolgov
caa6b89771
Java: RefJavaModule for inspection "Unused 'requires' statement in module-info" (IDEA-163139)
2016-11-22 14:10:31 +03:00
Pavel Dolgov
ecee694ed9
Java: Added test for the global inspection "Unused 'requires' statement in module-info" (IDEA-163139)
2016-11-22 14:10:31 +03:00
Pavel Dolgov
295649ae33
Java: Global inspection "Unused 'requires' statement in module-info" (IDEA-163139)
2016-11-22 14:10:31 +03:00
Tagir Valeev
492d6ad737
ReplaceInefficientStreamCountInspection: remove generic parameter list if any
2016-11-22 12:31:24 +07:00
Tagir Valeev
ec864dc55a
IDEA-163874 "Replace inefficient Stream API call chains ending with count" removes comments
...
IDEA-163875 Inspection "Replace inefficient Stream API call chains ending with count()" should respect alignment settings
2016-11-22 12:14:21 +07:00
Anna.Kozlova
8cc13eea96
generate toString(): include super class's accessible fields and getters (IDEA-93029)
2016-11-21 19:33:20 +01:00
Bas Leijdekkers
cbab61f15b
fix annotation matching in duplicates finder
2016-11-21 17:09:15 +01:00
peter
103feba4ca
IDEA-164159 Nullability annotations don't work with generics
2016-11-21 16:41:08 +01:00
Anna.Kozlova
7d1f9d1e7b
lambda -> method ref: allow pure method call chain (IDEA-164223)
2016-11-21 16:28:18 +01:00
Alexey Kudravtsev
81f334d3a1
removed nullable collection anti-pattern
2016-11-21 16:29:52 +03:00
Pavel Dolgov
c323980d20
Java: Handle classes in the inspection "Non-accessible type is exposed", added tests for initializer blocks (IDEA-162768)
2016-11-21 14:32:45 +03:00
Pavel Dolgov
4a43f69f68
Java: Don't handle annotations in the inspection "Non-accessible type is exposed" (IDEA-162768)
2016-11-21 14:32:45 +03:00
Pavel Dolgov
64afe806a9
Java: Handle fields and methods in the inspection "Non-accessible type is exposed", added arrays test (IDEA-162768)
2016-11-21 14:32:45 +03:00
Tagir Valeev
bb0a1b6817
IDEA-163980 Inspection "Collections.sort() can be replaced with List.sort()" may leave unnecessary parentheses
2016-11-21 14:59:02 +07:00
Tagir Valeev
f60c60c661
IDEA-164144 Intention offers change to comparingInt for long fields
2016-11-21 13:08:30 +07:00
Roman Shevchenko
27e9529272
Merge remote-tracking branch 'origin/master'
2016-11-18 21:04:20 +01:00