Commit Graph
3893 Commits
Author SHA1 Message Date
Anna.Kozlova 541921d315 testdata for fresh variables during applicability check (javac infers Object and fails) 2017-04-28 10:03:16 +02:00
Bas Leijdekkers af0239a648 test "Fix all 'Unnecessary fully qualified name' problems in file" 2017-04-27 19:21:50 +02:00
Anna.Kozlova d82105d5ec check possible inference for method references before simplification (IDEA-171976) 2017-04-26 20:36:29 +02:00
Dmitry Batkovich 0301170130 method chains completion: fix tests (class shouldn't be functional) 2017-04-26 19:21:47 +03:00
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
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
Anna.Kozlova 20113417a0 completion: don't start template if Object was inferred by the parent type 2017-04-25 17:03:13 +02: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 54eb5b2d2b IDEA-171854 Suggest replacing boxed compareTo with convenience methods from Java 7 2017-04-24 17:41:21 +07: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
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
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
Dmitry Batkovich 9f13e80bc1 method chain completion: use proper qualifier, not method declaration class 2017-04-20 12:23:55 +03:00
Bas Leijdekkers 58f662cf62 try to make quick fix name more clear 2017-04-19 22:06:58 +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 16b0cce4f6 overload resolution: don't skip static method conflicts in classes in hierarchy (IDEA-171617) 2017-04-19 14:01:07 +02: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 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 9a6fa90298 Java: Quick fix for merging duplicate statements in module-info - don't offer to merge the statements where merging is equivalent to deletion (IDEA-169211, IDEA-CR-19927) 2017-04-14 16:19:18 +03:00
Anna.Kozlova c917f02b47 testdata for javac resolution order: to be merged in java 9 update 2017-04-11 16:22:35 +02:00
Anna.Kozlova c9554bd544 move initializer to setup: should work when setup method is there (IDEA-171236) 2017-04-11 11:52:20 +02:00
Tagir Valeev d0bd812d05 BoolUtils#getNegatedExpressionText: push negation down into || and && 2017-04-10 16:11:18 +07:00
Tagir Valeev 3da23def83 InvertIfCondition: some fixes for non-compilable code 2017-04-10 12:09:51 +07:00
Tagir Valeev f4c6d909ab IDEA-171205 Create local variable from usage: honor most suitable overload by parameter count 2017-04-10 11:29:42 +07:00
Anna.Kozlova 1d95e4ee02 java 9: effectively final check fixed (IDEA-171152) 2017-04-07 19:00:58 +02:00
Roman Shevchenko 42152d7dd5 Merge remote-tracking branch 'origin/master' 2017-04-07 18:54:51 +02:00
Roman Shevchenko 0588a4d12c [java] recognizes @moduleGraph tag 2017-04-07 18:53:56 +02:00
Roman Shevchenko 2a47148d94 [tests] message texts in Javadoc highlighting tests 2017-04-07 18:48:45 +02:00
Anna.Kozlova c0b06a8f2a java 8: access static method through instance variable: don't show warning, error is enough; add quick fix for an error same as for inspection 2017-04-07 18:20:18 +02:00
Anna.Kozlova 32073ed7f9 java 9: hide inappropriate for interface modifier suggestions, ensure valid combination of modifiers (IDEA-171091) 2017-04-07 18:20:18 +02:00
Anna.Kozlova 229ff01656 java 9: ensure private methods in interfaces do not receive implicit public modifier (IDEA-171089) 2017-04-07 18:20:18 +02:00
Anna.Kozlova 8e598aa908 java 9: reject private modifiers in annotation types (IDEA-171088) 2017-04-07 18:20:18 +02:00
Anna.Kozlova 412d071d08 add fixes to change expected type when inference fails due to it (IDEA-162846) 2017-04-07 09:51:10 +02:00
Anna.Kozlova b2ecf6e674 inference: don't fix the lambda return type for nested lambda processing (IDEA-169161) 2017-04-05 18:28:48 +02:00
Anna.Kozlova afd31563b0 convert to diamonds: ensure check for applicability is performed on static factory as otherwise it would be just skipped (IDEA-170813) 2017-04-05 10:00:19 +02:00
Bas Leijdekkers 94fdc35577 "push condition inside call" intention replaced with "Conditional can be pushed inside branch" inspection 2017-04-04 22:47:39 +02:00
Dmitry Batkovich a0cb4092b7 Merge branch 'db/method-chains-completion'
# Conflicts:
#	jps/jps-builders/src/org/jetbrains/jps/backwardRefs/BackwardReferenceIndexUtil.java
#	jps/jps-builders/src/org/jetbrains/jps/backwardRefs/BackwardReferenceIndexWriter.java
#	jps/jps-builders/src/org/jetbrains/jps/incremental/JavaBuilderService.java
2017-04-03 17:08:15 +03:00
Dmitry Batkovich 91fa3f1dbe method chain search use PsiType-s instead of raw strings 2017-04-03 16:07:09 +03:00
Anna.Kozlova faa4c93b47 skip errors in case of diamond inference with type parameters on constructor 2017-04-03 13:52:13 +02:00