Commit Graph
271 Commits
Author SHA1 Message Date
Anna.Kozlova cfb011e3e1 check inheritance for classes in local scopes to check that metho overrides another method (IDEA-161863) 2016-09-30 09:33:28 +02:00
peter 53867e057f IDEA-161862 Lambda Expressions not showing as implementations of an interface 2016-09-29 11:31:20 +02:00
Anna Kozlova 948028ac5c reenable index for tests 2016-09-21 22:46:52 +03:00
Anna Kozlova c7f20d26ee disable index for offline inspections as checks are disabled anyway 2016-09-21 19:32:10 +03:00
peter e9790ebb6a IDEA-161355 InjectionCache.getAnnoIndex should be faster 2016-09-16 15:54:58 +02:00
Roman Shevchenko 09cb3081a8 [java] resolves Java module references according to a project model 2016-09-08 22:34:26 +03:00
Alexey Kudravtsev db6d4e1fcc removed "suppress unused" for deprecated methods to avoid using them again, especially since some of them already are. 2016-09-07 14:12:33 +03:00
Alexey Kudravtsev 0798a43f7d Use resolveImaginarySuperCallInThisPlace() instead of enumerating all super class constructors; find usages of overloaded ctr should find only correct implicit super calls 2016-09-01 16:59:57 +03:00
peter 7d670211a6 decrease the invocation counts of psi.getText in several java places 2016-09-01 10:00:39 +02:00
Anna Kozlova 52ac0074cf find implicit constructor call: check this constructor only (IDEA-CR-13272) 2016-08-30 21:06:06 +03:00
peter acf1042858 search for functional expressions in batch mode to let the ASTs be gc-ed more easily 2016-08-26 17:52:24 +02:00
peter 4a2aef477e InjectionCache: don't load AST, search in non-Java files as well 2016-08-26 08:07:50 +02:00
Anna Kozlova 1a51428899 find usages: explicit this/super means that super/this were not called implicitly 2016-08-24 21:16:13 +03:00
Anna Kozlova d876e1be0b find of constructor with one vararg parameter should assume implicit usages (IDEA-158585) 2016-08-24 21:16:13 +03:00
Dmitry Batkovich 5de3184fb3 do not search null-literal argument for notnull var-arg parameter IDEA-160134 2016-08-23 13:13:40 +03:00
Dmitry Batkovich 7c84541525 java null argument search: check that argument index < arguments.length (in case of red code) 2016-08-22 09:40:27 +03:00
Dmitry Batkovich 8a9227543c an index to detect nulls passed as arguments of method parameters + DataFlowInspection and NullableStuffInspection use it to detect method call failings when one of parameters is null 2016-08-18 12:21:51 +03:00
Roman Shevchenko 4c2c1a084c [java] resolve in modules 2016-08-16 16:18:12 +03:00
peter 367620d2cb reuse GlobalSearchScopeUtil.toGlobalSearchScope 2016-08-16 14:11:38 +02:00
peter 9776d5a28d speedup functional expression search (IDEA-159107)
* filter inapplicable expressions without loading AST if possible, via approximate resolve
* for that, store the approximate call chains in index
* iterate over files once, not for each empty marker Runnable interface separately
* don't rely on generic method parameter index: it's huge, memory-hungry and works only in Java
2016-08-13 12:12:19 +02:00
peter e8ea2598f3 fun expr search: minor improvements after reviews 2016-08-13 12:12:19 +02:00
Anna.Kozlova 78d1492242 explicit types to diamonds 2016-08-08 17:08:03 +02:00
peter 382b5c50d7 fun expr search: don't hold methods in memory for more time than needed 2016-08-05 17:19:56 +02:00
peter b051f0f067 avoid type inference during fun expr searches by using approximate resolve 2016-08-05 13:41:38 +02:00
peter 4a8ef75eef search for functional expressions in most likely files first, to speed up daemon arrow appearance (IDEA-159107) 2016-08-05 13:41:37 +02:00
peter 093b231dcd go back to using non-stub index for functional expressions, because the inevitable stub-AST switch is quite more expensive than finding element by offset (because a lot less code blocks will be parsed in the latter case) 2016-08-05 13:41:37 +02:00
peter 522e0b9c2d don't visit jdk Stream API usages when searching for unrelated functional interface implementations 2016-08-03 12:49:11 +02:00
peter 4db293153c avoid unnecessary stub-ast switching when determining scope for function expression search 2016-08-03 12:49:11 +02:00
peter ded3f46951 lambda search: detect more boolean lambdas, use explicit types in methods and casts, introduce a parameter object in the search 2016-07-29 19:44:32 +02:00
peter f0c3ede074 don't search for functional expressions in injected code 2016-07-27 17:07:10 +02:00
Alexey Kudravtsev 9adb5f32ca do not scan compiled scope: EA-86173 - assert: LowLevelSearchUtil.a 2016-07-25 16:30:22 +03:00
peter 25805e7357 fix NPE in JavaFunctionalExpressionSearcher 2016-07-25 14:07:43 +02:00
peter ec0f90dbbf distinguish boolean lambdas for finer search granularity; make FunctionalExpressionKey#hashCode independent of enum hashCode 2016-07-25 11:28:54 +02:00
peter b8222255ef index variable types to make functional expression search process only relevant variable initializers 2016-07-23 23:05:56 +02:00
peter 22b9dc61a6 fin functional expressions of SAM interfaces related to the given one 2016-07-23 23:05:56 +02:00
peter 2a93e063bd rewrite functional expression search to use stub index 2016-07-22 17:41:21 +02:00
Roman Shevchenko 25610a8713 [java] module stub, module name index, module-info.class files reading 2016-07-12 18:30:57 +02:00
peter da07daf5ce stub hierarchy: use less memory when reading from index 2016-07-05 08:58:07 +02:00
peter a95a5c1afe "test stub hierarchy" action should find non-indexed classes in files reported as 'covered' 2016-07-04 19:37:30 +02:00
Maxim.Mossienko adba44ddf4 advance index version 2016-07-04 12:57:00 +02:00
Alexey Kudravtsev 8621622cd3 duplicate methods united 2016-06-30 14:45:47 +03:00
Alexey Kudravtsev 03cdb63b4b IDEA-157666 Type Hierarchy scope doesn't work - always shows all subtypes 2016-06-30 14:37:19 +03:00
Alexey Kudravtsev cf53206875 cleanup 2016-06-30 14:37:19 +03:00
peter 0870d8dcad stub hierarchy: search for compiled elements, even if invoked from library source 2016-06-29 15:07:22 +02:00
peter 20c0a7e5a9 on goto implementation, search for cheap class inheritors before expensive functional expressions 2016-06-29 15:07:22 +02:00
peter b4a2271239 stub hierarchy: serialize hashes instead of names for faster reading, smaller index data and a very unlikely collision probability 2016-06-24 17:02:24 +02:00
peter 95b3d482d9 more efficient use of indices in stub hierarchy 2016-06-24 14:57:56 +02:00
peter 36fc41902e make DumbService.runReadActionInSmartMode work in read action in dumb mode, add some invocations 2016-06-16 17:31:59 +02:00
peter 0515817da4 JavaFunctionalExpressionSearcher to tolerate suddenly invalid files (EA-83783 - assert: FileManagerImpl.findFile) 2016-06-14 16:27:04 +02:00
Alexey Kudravtsev be3519d145 PCE left classesBeingProcessed dirty fixed 2016-06-14 14:21:14 +03:00