Commit Graph
9574 Commits
Author SHA1 Message Date
Anna.Kozlova fbf500d2d4 inference: skip standalone expressions in lambda returns (IDEA-171922) 2017-04-26 16:28:04 +02:00
Anna.Kozlova c4d213ba26 method references: don't infer Object when no constraint exist for 'raw' reference (IDEA-171922) 2017-04-26 16:28:04 +02:00
Anna.Kozlova e2ceb575a2 testdata on javac issue 2017-04-26 16:28:04 +02:00
Pavel Dolgov 5352cf432c Java: In the inspection that checks existence of methods accessed via reflection take into account type information from Class.newInstance() and Array.newInstance() (IDEA-172003) 2017-04-26 14:43:50 +03:00
Tagir Valeev d9264ad579 DFA: MethodReference handling: reportMethodReferenceProblems extracted; do not report when all contracts are trivial 2017-04-26 17:41:53 +07:00
Tagir Valeev 9127146364 DataFlowInspection: highlight method references known to return constant true/false value with quick-fix changing them to trivial lambdas (partially fixes IDEA-170885). 2017-04-26 12:43:30 +07:00
peter c91daf1daf support boxed number comparisons in constant expression evaluation (IDEA-171861) 2017-04-25 18:46:57 +02:00
Anna.Kozlova 20113417a0 completion: don't start template if Object was inferred by the parent type 2017-04-25 17:03:13 +02:00
Konstantin Kolosovsky 6b66e8fc2c Do not use "InspectionToolRegistrar" in "InspectionProfileImpl" directly
Use just "Supplier<List<InspectionToolWrapper>>" instead. Update
corresponding unnecessary "InspectionToolRegistrar" inheritors.
2017-04-25 16:19:57 +03:00
Pavel Dolgov e8dabd42ff Java: Fixed completion of overloaded method parameters in getDeclaredMethod("methodName", ...) (IDEA-171721) 2017-04-25 14:41:26 +03:00
Tagir Valeev b0f41a8d62 Report always true/always false condition on boolean returning methods with contracts 2017-04-25 11:25:08 +07:00
Aleksey Pivovarov f5d308a28c take absolute value of a remainder, not a remainder of an absolute value
`Math.abs(INT_MIN) == INT_MIN`
as a result, `Math.abs(x) % 10` might return negative value.
2017-04-24 18:56:20 +03:00
Tagir Valeev 54eb5b2d2b IDEA-171854 Suggest replacing boxed compareTo with convenience methods from Java 7 2017-04-24 17:41:21 +07:00
Pavel Dolgov b263e82d09 Java: Inspection that checks if a field or method accessed via reflection does exist and is visible (IDEA-168837) 2017-04-24 13:00:35 +03:00
Tagir Valeev 9f54ca8b27 SimplifyStreamApiCallChainsInspection: replace map with peek: support multiline lambdas (IDEA-CR-20417) 2017-04-24 15:25:38 +07:00
Konstantin Bulenkov a9c54cdfd0 cover color gutters functionality in Java by tests 2017-04-21 22:49:23 +02:00
Anna.Kozlova 58fcabfd2b functional interfaces: allow intersection with 2 independent abstract methods with same signature (IDEA-171622) 2017-04-21 20:03:27 +02:00
Anna.Kozlova d680d55c99 register local refs to java if references are registered in literal expression by foreign contributor (e.g. reflection, data providers, etc) (IDEA-171495) 2017-04-21 20:03:27 +02:00
Anna.Kozlova 85cdf34c8a disable import static constant at annotation position 2017-04-21 20:03:27 +02:00
Dmitry Batrak dd922ae87b fix caret position relative to hint after nested smart completion 2017-04-21 19:11:14 +03:00
Dmitry Batrak 3840e41483 remove method completion hints if parameter count was changed 'manually' 2017-04-21 19:11:14 +03:00
Roman Shevchenko e780dc29d6 Merge remote-tracking branch 'origin/master' 2017-04-21 14:05:46 +02:00
Roman Shevchenko a7c9a25e2a [java] fixes formatting in "provides with" reference list 2017-04-21 13:39:40 +02:00
Tagir Valeev 036f556c55 ControlFlowUtils#statementBreaksLoop: fix void return case 2017-04-21 17:52:15 +07:00
Roman Shevchenko 6317f2b916 [tests] one more test case for module-info formatting 2017-04-21 10:14:39 +02:00
Dmitry Batkovich af57b8414a method chain completion: suggest chains for collection of elements 2017-04-20 18:46:21 +03:00
Dmitry Batkovich 4d79d6635a method chain completion: suggest chains for arrays 2017-04-20 16:12:08 +03:00
Dmitry Batrak 64d63f4a2a IDEA-170735 CTRL+MouseOver popup over inner class does not show outer class - update existing test 2017-04-20 14:53:54 +03:00
Tagir Valeev dab8efdeaf IDEA-170892 Inspection: Suspicious Arrays.fill() call 2017-04-20 18:27:11 +07:00
Dmitry Batrak 9176f9b874 IDEA-170735 CTRL+MouseOver popup over inner class does not show outer class 2017-04-20 12:53:24 +03:00
Dmitry Batkovich e9e0d45eb2 Merge branch 'db/index-id' 2017-04-20 12:29:35 +03:00
Dmitry Batkovich 9f13e80bc1 method chain completion: use proper qualifier, not method declaration class 2017-04-20 12:23:55 +03:00
Tagir Valeev 319a4db5c0 IDEA-117814 Allow to ignore some methods in "suspicious variable/parameter name combination" inspection like PrintStream.println()
Tests converted from InspectionTestCase to LightInspectionTestCase
2017-04-20 13:57:26 +07:00
Bas Leijdekkers 58f662cf62 try to make quick fix name more clear 2017-04-19 22:06:58 +02:00
Bas Leijdekkers ad4c63bd1f fix false negative in "Redundant array creation" inspection 2017-04-19 22:06:58 +02:00
Roman Shevchenko c01f845b1c Merge remote-tracking branch 'origin/master' 2017-04-19 17:21:46 +02:00
Roman Shevchenko 990be87937 [java] "complete statement" in module-info.java (IDEA-170568) 2017-04-19 17:20:59 +02:00
Roman Shevchenko f71fdbba2c Cleanup (unneeded restore in tests; unneeded exceptions; formatting; typos) 2017-04-19 15:52:10 +02:00
Anna.Kozlova e624e6914d fix testdata 2017-04-19 15:32:46 +02:00
Anna.Kozlova 16b0cce4f6 overload resolution: don't skip static method conflicts in classes in hierarchy (IDEA-171617) 2017-04-19 14:01:07 +02:00
Dmitry Batrak 9a70984732 don't show parameter hints on completion of blacklisted methods with one parameter 2017-04-19 14:36:37 +03:00
Pavel Dolgov af08eeeeb9 Merge duplicate statements in module-info.java - merge all duplicates at once, preserve comments, set caret to the resulting statement (IDEA-169211) 2017-04-19 13:57:14 +03:00
Anna.Kozlova c24f0b7d65 restore parameter info for super/this calls 2017-04-19 10:32:47 +02:00
Anna.Kozlova 88e85b1846 capture for method reference return type: disable registry key for upcoming spec change 2017-04-19 10:00:33 +02:00
Dmitry Batkovich 14d6261ea5 IndexId as a class, not an interface (immutability of getName() method) 2017-04-18 19:17:53 +03:00
Anna.Kozlova c322dd3807 method reference: registry option to skip unsound capture conversion specified in the spec but ignored by the javac, to be changed in the next spec version (IDEA-171488) 2017-04-18 15:03:44 +02:00
Anna.Kozlova a3dca1423c method references: exclude type parameter used in return types only (IDEA-171480) 2017-04-18 15:03:44 +02:00
Anna.Kozlova 9f6e8ccb35 delegate methods: restore ellipsis type (IDEA-171529) 2017-04-18 15:03:44 +02:00
Pavel Dolgov 844082c455 Java: Inspection to check that qualified names in Class.forName() belongs to exported or open package (IDEA-167271) 2017-04-18 15:43:26 +03:00
Tagir Valeev 1c312d3e13 IDEA-170626 Suggest to use Stream.peek instead of Stream.map if the lambda parameter is not reassigned during the operation. 2017-04-18 17:57:29 +07:00