Commit Graph

169 Commits

Author SHA1 Message Date
Roman Shevchenko ba9de6eb7f Cleanup (warnings; formatting) 2016-09-16 10:39:39 +03:00
Alexey Kudravtsev 8b2f420ab3 IDEA-151933 Optimize Imports can produce ambiguous code 2016-09-07 14:12:33 +03:00
Alexey Kudravtsev 11a4ede7a5 highlight names: do not highlight in huge chunks because there maybe whitespaces or comments between tokens; instead, highlight identifiers only 2016-08-23 14:54:58 +03:00
Alexey Kudravtsev 5fa79bc4e1 test 2016-08-23 14:49:38 +03:00
Anna Kozlova 6fdc29ee24 highlight comments inside qualified names (IDEA-154450) 2016-08-15 20:17:11 +03:00
Anna Kozlova 8a0c63df61 names highlighting: don't highlight typed reference as class name (IDEA-65270) 2016-08-15 20:17:11 +03:00
Pavel Dolgov d92688892f Java control flow: Fixed false positive for definite assignment in finally block - more lightweight implementation (IDEA-64488) 2016-08-03 12:47:42 +03:00
Pavel Dolgov cb2dfeb368 Java control flow: Fixed false positive for definite assignment in finally block (IDEA-64488) 2016-08-01 20:19:49 +03:00
Bas Leijdekkers 46e4268b8f Fixed "Variable assigned to itself" quickfix (IDEA-148688) 2016-08-01 17:13:28 +02:00
Pavel Dolgov 7b97664b85 Java control flow: Detect unreachable code when a break or continue in the try block is overridden in the finally block of the same try statement (IDEA-35597) 2016-07-29 14:54:49 +03:00
Pavel Dolgov 8c2803eedc Java control flow: Handle the case where the variable from the left part of a compound assignment is modified in the right part of the same assignment (IDEA-23725) 2016-07-25 13:36:21 +03:00
Pavel Dolgov 2be74e8c45 Java control flow: Added conditional branch that bypasses assert statement because assertions can be disabled (IDEA-71526) 2016-07-22 14:58:35 +03:00
Alexey Kudravtsev db48c64473 use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests 2016-07-20 15:47:18 +03:00
Anna Kozlova 7896eddc3b this and super are not available inside anonymous class args 2016-07-01 12:44:39 +03:00
Anna Kozlova 2f550f3ba0 revert (IDEA-157631) 2016-06-20 14:02:29 +03:00
Anna Kozlova cb071c57a6 reject imports from default package (IDEA-138822; IDEA-154024) 2016-06-06 20:12:56 +03:00
Anna Kozlova 5f7200897e ambiguous constants references: shadowing (IDEA-146058) 2016-06-06 20:12:56 +03:00
Anna Kozlova e90277c07e inheritance with checkDeep=false & anonymous fixed (IDEA-151341) 2016-06-06 12:01:33 +03:00
Anna Kozlova c09e6aa438 isLocalClass should work for nested local classes (IDEA-156777) 2016-05-30 20:01:09 +03:00
Alexey Kudravtsev 13c9f95b50 register Java fields referenced from injected fragments as read/written 2016-05-24 15:23:25 +03:00
Roman Shevchenko 10ed658de9 [platform] illegal character highlighting: updated message and test data (IDEA-CR-10947) 2016-05-24 12:32:39 +02:00
Roman Shevchenko 3cb98099d8 [java] illegal character highlighting (IDEA-144046) 2016-05-20 17:49:09 +02:00
Anna Kozlova dbe1598e9f highlight implicit constructor call as method (IDEA-152964) 2016-05-11 16:05:47 +02:00
Anna.Kozlova 56a3a1ffa4 move operator assignment check for object to javac quirks inspection with fix (IDEA-154209) 2016-04-06 17:15:12 +02:00
Anna.Kozlova d935cfd941 change error message (IDEA-153156) 2016-03-22 19:37:27 +01:00
Anna Kozlova f8e59f5965 not a statement -> declaration not allowed here (IDEA-152090) 2016-02-24 13:12:24 +01:00
Anna Kozlova 930df16f98 inference: propagate variable renames through the call hierarchy; calculate tooltips in tests (IDEA-151948) 2016-02-22 20:05:58 +01:00
Alexey Kudravtsev 86b6ee7f18 folowup to IDEA-149950: changed "package local" to JLS-conformant "package-private" 2016-02-18 13:53:04 +03:00
Alexey Kudravtsev 05de8796ca IDEA-149950 Bad typo in "Declaration access can be weaker" inspection 2016-02-17 14:38:41 +03:00
Rustam Vishnyakov 7144e23b77 Fix test data (default color for class/interface names is black, not undefined) 2016-01-22 18:48:26 +03:00
Anna Kozlova cde4b88ba3 testdata for IDEA-67808 2015-12-07 10:35:33 +01:00
Bas Leijdekkers a20691e9c4 IDEA-26291 (Small error in "variable is assigned to itself" inspection) 2015-12-01 19:11:41 +01:00
Roman Shevchenko a1f7aa76fb [java] highlighting for incorrect first statement in switch (IDEA-148514) 2015-11-30 18:48:32 +01:00
Roman Shevchenko 2c2b27fc5d Cleanup (formatting; typos) 2015-11-30 18:32:01 +01:00
Anna Kozlova e27c654b20 silly assignment: ignore non-trivial casts involving primitives (IDEA-146830) 2015-10-27 19:35:20 +01:00
Alexey Kudravtsev 59e0751e2c cleanup 2015-07-24 16:54:15 +03:00
Alexey Kudravtsev 9e99eabbb6 IDEA-141923 Errors in for-each statement header aren't highlighted if there're errors in its body 2015-06-26 14:42:13 +03:00
Anna Kozlova 6ca09678c2 allow navigation to not accessible fields when they are used inside reference chain 2015-02-17 14:58:59 +01:00
Anna Kozlova 65064ac053 include InterruptedException into mock1.7 testdata fixed 2015-01-22 13:05:05 +01:00
Anna Kozlova cda6746874 highlight static imports according to the color scheme selected (IDEA-133887) 2014-12-30 15:36:37 +01:00
Anna Kozlova 79b5f29665 highlight inherited methods inside anonymous/inner classes (IDEA-134626) 2014-12-29 21:15:12 +01:00
Alexey Kudravtsev c3e8934499 IDEA-133946 Don't highlight private constructor as unused if it is called by dependency injection engine 2014-12-15 14:18:20 +03:00
Anna Kozlova 3ea5b44100 resolve package/class if field is not accessible in fqn method call (IDEA-133812) 2014-12-03 12:53:07 +01:00
Alexey Kudravtsev 18365be5d0 instantiate UnusedDeclarationInspection properly in tests; got rid of setters 2014-11-13 14:13:18 +03:00
Anna Kozlova 2a71679bc4 initialized twice should not make use of computed constants (IDEA-63226) 2014-10-30 18:41:04 +01:00
Anna Kozlova 14f91eb65f final field initialization: class initializers (IDEA-130312) 2014-10-30 18:41:03 +01:00
Anna Kozlova d0e6c61fde disable short circuits for unreachable statements detection (IDEA-58305; IDEA-70953; IDEA-70948) 2014-10-30 11:50:05 +01:00
Alexey Kudravtsev a03297df6b do not highlight method unused if referenced via overridden 2014-09-23 16:00:58 +04:00
Anna Kozlova 724425f20f allow access inner class object from super expression (IDEA-129795) 2014-09-12 21:36:56 +04:00
Bas Leijdekkers e65ecdae08 EA-59392 (NPE: ControlFlowAnalyzer.visitPostfixExpression) 2014-08-14 22:38:57 +02:00