Commit Graph
5886 Commits
Author SHA1 Message Date
Anna.Kozlova abfa41efdf applicability error: check inferred types by applicability substitutor (IDEA-167275) 2017-02-13 14:10:51 +01:00
Tagir Valeev 0e3cb89ae2 IDEA-153922 "Optional.get() without isPresent" check when used in ifPresent's consumer 2017-02-13 17:48:12 +07:00
Tagir Valeev 05ccacfa5f StreamApiMigration: check for label not pointing to the statement (Fix for EA-96734 - NPE: TerminalBlock.extractOperation) 2017-02-13 16:14:55 +07:00
Tagir Valeev 58a586ddc4 Conservatively disable warning on method call result if isPresent() with the same qualifier was observed (IDEA-CR-18052) 2017-02-13 15:25:22 +07:00
Tagir Valeev 3796ad1e31 OptionalGetWithoutIsPresent: Guava test added (IDEA-CR-18052) 2017-02-13 14:48:39 +07:00
Tagir Valeev f431c4ff38 OptionalGetWithoutIsPresentInspection completely merged into DataFlowInspection (IDEA-CR-18052) 2017-02-13 14:36:08 +07:00
Roman Shevchenko ce4b7046b2 [java] new module-info PSI
- PsiExportStatement is generalized into PsiPackageAccessibilityStatement
- statement getters in PsiJavaModule
2017-02-10 14:17:22 +01:00
Pavel Dolgov 24e71dc952 Java: Provide completion for arguments of Class.getAnnotation() and Class.getConstructor(), tests added (IDEA-167250) 2017-02-10 13:05:28 +03:00
Anna.Kozlova e88322304e inference: deep nested session based on existing initial substitution (IDEA-167713) 2017-02-10 10:04:15 +01:00
peter 696cbf6b26 dfa: consider methods in @Immutable classes referentially transparent (IDEA-167658) 2017-02-10 09:34:49 +01:00
Tagir Valeev 1cb1966489 OptionalGetWithoutIsPresentInspection: optional state integrated into main dataflow (IDEA-CR-18052) 2017-02-10 14:34:33 +07:00
Tagir Valeev a221c53bbf IteratorDeclaration: ListIterator support 2017-02-09 17:28:57 +07:00
Dmitry Batkovich aa67d1e6e2 suggest wrap string expression with java.io.File when it's expected IDEA-167566 2017-02-09 12:19:11 +03:00
Anna.Kozlova e1cf56ba6f ensure change variable type to lambda parameter type is not suggested
EA-96540 - IOE: PsiJavaParserFacadeImpl.createTypeElementFromText
2017-02-09 10:14:07 +01:00
Anna.Kozlova 2fc0560169 inference: ensure don't walk through explicitly specified type 2017-02-09 10:14:07 +01:00
peter abeb3aae84 IDEA-167777 Code completion (ctrl+space) ignores static imports from interfaces. 2017-02-08 18:49:11 +01:00
peter 030b38fd76 IDEA-167807 Completion inside wildcard type suggests equals 2017-02-08 17:28:32 +01:00
peter 0906b83847 dfa: assume fields used before initialization are null (IDEA-110297) 2017-02-08 16:10:57 +01:00
peter 3d33fe9b17 dfa: assume that implicitly initialized fields (e.g. in mockito) are not-null (IDEA-167790) 2017-02-08 16:10:57 +01:00
Tagir Valeev f396483457 Fixed EA-96417 - IOE: PsiJavaParserFacadeImpl.createExpressionFromText 2017-02-08 18:16:37 +07:00
Anna.Kozlova ccda645376 raise unchecked warning when captured wildcard is assigned (IDEA-167393) 2017-02-07 13:26:04 +01:00
Tagir Valeev 5c7ab507f9 IDEA-146716 Add inspection for "Iteration over entrySet() can be replaced with forEach" 2017-02-07 11:40:25 +07:00
Anna.Kozlova dbcac2d62f fix modifiers for created inner classes (IDEA-167750) 2017-02-06 19:08:41 +01:00
Anna.Kozlova 95254e27aa can be final: accept field initialized with this qualifier 2017-02-06 19:08:41 +01:00
Anna.Kozlova a72ce2ab17 can be final: don't suggest final if field was not initialized (IDEA-167670) 2017-02-06 19:08:41 +01:00
Anna.Kozlova 6be04d9bf2 create inner: ensure no modifiers inside local/anonymous classes (IDEA-167727) 2017-02-06 19:08:41 +01:00
Roman Shevchenko 66728e4f71 [java] invalid "for" statements highlighting (IDEA-167353) 2017-02-06 19:02:05 +01:00
peter b97defb6e2 dfa: report always zero references only in division (IDEA-167708) 2017-02-06 18:43:13 +01:00
Pavel Dolgov bcb8f9b8e8 Java: Provide completion inside literal argument of Class.forName() and ClassLoader.loadClass() (IDEA-167267) 2017-02-06 17:49:05 +03:00
Pavel Dolgov 69b3a8c6cb Java: Improved completion for arguments of getField() and getMethod() - extract the type information from forName() and getClass() to provide code assistance (IDEA-167250) 2017-02-06 15:40:31 +03:00
Anna.Kozlova 4a405a6bcd unchecked warning inside lambda return statements 2017-02-06 13:34:48 +01:00
Tagir Valeev 95baf652ae StreamApiMigration: support joining with prefix and suffix 2017-02-06 14:40:21 +07:00
Bas Leijdekkers 595fef1b17 allow to omit lock when reading volatile field in "Unguarded field access" inspection 2017-02-03 16:18:57 +01:00
Tagir Valeev 4351d56253 IDEA-167613 Exception converting Arrays.stream to loop with generics: test added 2017-02-03 17:07:29 +03:00
Tagir Valeev 9fbe22a647 afterAnyMatchAssignmentBooleanInverted: fixed after automatic simplification 2017-02-03 16:46:00 +03:00
Tagir Valeev b210302118 SimplifyStreamApiCallChainsInspection: fixed toArray conversion 2017-02-03 16:18:48 +03:00
Tagir Valeev a529975033 CallMatcher/CallMapper introduced experimentally; used in SimplifyStreamApiCallChainsInspection.java 2017-02-03 15:58:15 +03:00
Anna.Kozlova 43fd183f6e optimize imports: instance members should not conflict via static imports (IDEA-167039) 2017-02-03 11:57:37 +01:00
Vladimir Krivosheev c0b4796d2d UISettings — use smart state class (stored properties), part 7 2017-02-03 11:33:41 +01:00
Eugene Zhuravlev 47dcc95415 optimization for private-method-added-to-abstract-class 2017-02-03 11:11:45 +01:00
Tagir Valeev 0bc8981efa IDEA-167574 Provide inspection for find redundant StreamSupport.stream
Refactor SimplifyStreamApiCallChainsInspection
2017-02-03 10:40:11 +03:00
Tagir Valeev 7a4f84ead5 IDEA-167583 Uncompilable code after conversion Stream -> Loop with lambda 2017-02-03 00:19:56 +03:00
Tagir Valeev a767bc9672 IDEA-167580 Uncompilable code after conversion Stream -> Loop with generics 2017-02-02 22:08:44 +03:00
Tagir Valeev 803b3aa940 IDEA-167588 Uncompilable code after conversion Stream -> Loop with unknown Stream sources 2017-02-02 21:52:15 +03:00
Tagir Valeev 2e1c753a6d IDEA-167578 Uncompilable code after convertion forEach -> Loop with generics wildcard 2017-02-02 21:52:14 +03:00
Pavel Dolgov 8a73604580 Java: Improved completion for arguments of reflection calls getField() and getMethod() - extract the actual type from Class.forName and from generic type parameter to provide the code assistance (IDEA-167250) 2017-02-02 14:55:52 +03:00
Tagir Valeev 0183b826f9 IDEA-167466 String concatenation in loop inspection: provide additional quick-fix to introduce a new StringBuilder;
String concatenation in loop is enabled by default now
2017-02-02 14:29:02 +03:00
Anna.Kozlova 07a332598a ensure additional constrains are collected based on ground functional type (IDEA-167277) 2017-02-01 19:12:26 +01:00
peter 624831f243 IDEA-167367 Data flow analysis doesn't process division 2017-02-01 17:53:15 +01:00
peter 4e71366f3b prefer local variables over static method references in completion 2017-02-01 17:53:15 +01:00