Commit Graph
9151 Commits
Author SHA1 Message Date
Anna.Kozlova e0afb738e7 revert additional applicability checks due to captures inside subst 2017-02-15 13:38:12 +01:00
Tagir Valeev 024c0831ac IDEA-168203 StreamApiMigration: accept more standard collection constructors 2017-02-15 11:46:18 +07:00
Tagir Valeev fc3f0bb09d SimplifyStreamApiCallChainsInspection: convert IntStream.range(0, Math.min(limit, arr.length)).map(idx -> arr[idx]) to Arrays.stream(arr).limit(limit) and so on 2017-02-15 11:46:18 +07:00
peter 4f45117015 really search for private class inheritors outside the current file (IDEA-167877) 2017-02-14 18:19:33 +01:00
Vladislav Rassokhin 78f173cfb7 IDEA-CR-18229 Improve MagicConstantInspection in case of two constants sources:
* Reverted origin test, add new test case
* Throw exception if both 'flags' and 'values' used.
* Fix tests: `PsiAnnotation#findAttributeValue` may return default values, ignore them
2017-02-14 20:11:30 +03:00
Vladimir Krivosheev 1929da8a22 deprecate loadDocument 2017-02-14 16:41:40 +01:00
Vladislav Rassokhin 07b27a76a9 Improve MagicConstantInspection in case of two constants sources 2017-02-14 18:38:48 +03:00
Pavel Dolgov e4ec230e5d Java: Added priorities in the completion list for arguments of getField() and getMethod() (IDEA-167250) 2017-02-14 17:11:55 +03:00
Pavel Dolgov 8754155e85 Java: Added priorities in the completion list for arguments of getAnnotation() and getConstructor() (IDEA-167250) 2017-02-14 17:11:55 +03:00
Roman Shevchenko 4247eeb3c0 [tests] checks mapping in .class mirror building test 2017-02-14 11:57:03 +01:00
peter cc237c0a58 make it explicit that nullity/contract inference from source works only with PsiMethodImpl
inspired by https://github.com/JetBrains/intellij-community/pull/511
2017-02-14 10:22:39 +01:00
Tagir Valeev 95ed6b3fd6 StreamApiMigrationInspection: use Stream.of, etc. to iterate explicitly created array 2017-02-14 14:27:23 +07:00
Maxim.Mossienko 930f1e21c3 properly determine set of keys to be invalidated if snapshot index has no prior unsaved keys (IDEA-167050), EA-92612, r=Dmitry.Batkovich 2017-02-13 22:04:38 +01:00
Anna.Kozlova de1520695c static via instance: hide parameters/classes qualified names (IDEA-168084) 2017-02-13 19:30:18 +01:00
Anna.Kozlova 770bd344ea ensure assignability for standalone expressions during applicability check (IDEA-159086) 2017-02-13 18:30:53 +01:00
Anna.Kozlova e24d26211e fix testdata 2017-02-13 15:07:10 +01:00
Anna.Kozlova abfa41efdf applicability error: check inferred types by applicability substitutor (IDEA-167275) 2017-02-13 14:10:51 +01:00
Anna.Kozlova dfe0c02166 ensure evaluation don't downcast to long (IDEA-167984) 2017-02-13 14:10:51 +01:00
Roman Shevchenko f129fb5daf [java] reuses getName() and getNameIdentifier() methods for modules 2017-02-13 13:22:11 +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 6b1492fde7 Java: Fixed a grammar mistake in message for the inspection "Non-accessible class is exposed" (IDEA-166535) 2017-02-10 13:15:33 +03: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
Vladimir Krivosheev 5c99d5a1d2 serialization: kotlin data class full support (initial, enabled only in tests for now) — part 4 Vladimir Krivosheev 09/02/2017, 17:32 2017-02-10 06:47:10 +01:00
Vladimir Krivosheev 6496cdb440 serialization: kotlin data class full support (initial, enabled only in tests for now) — part 2 2017-02-10 06:44:07 +01:00
Sergey Simonchik 07e2ace95c deprecate getAdditionalProjectLibrarySourceRoots; rename newFixedLibrary to newImmutableLibrary (IDEA-CR-17846) 2017-02-10 00:02:00 +03: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
Tagir Valeev fe65a393e9 Java8MapForEachInspection: do not highlight for loops by default (but provide a quick-fix) (IDEA-CR-18002) 2017-02-09 10:03:44 +07:00
peter 7b262689ff find class inheritors outside its direct use scope (IDEA-167877) 2017-02-08 19:18:03 +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
Pavel Dolgov 82abcad979 Java: Improved messages and documentation for the inspection "Non-accessible class is exposed" (IDEA-166535) 2017-02-08 17:19:01 +03:00
Pavel Dolgov 7decc41a7c Java: Merged two inspections ClassEscapesItsScopeInspection and Java9NonAccessibleTypeExposedInspection (IDEA-166535) 2017-02-08 15:53:28 +03: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
Alexander Zolotov bebc20f086 Live Templates: bulk update should change later segment first (IDEA-167694) 2017-02-07 15:17:23 +03:00
Alexey Kudravtsev e760009aaa cleanup 2017-02-07 14:36:46 +03:00
peter b4599c25d7 avoid races by updating all stub/AST-related data in a file atomically 2017-02-07 09:35:15 +01:00