File tree Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Expand file tree Collapse file tree 2 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -587,11 +587,6 @@ class Method extends Function {
587
587
predicate implementsIncludingInterfaceMethods ( Method m ) {
588
588
this = m
589
589
or
590
- // Take all methods
591
- // Get receiver type then underlying type ==> [method, recvutype]
592
- // Map through Type.implements ==> [method, candtype]
593
- // Get method name ==> [mname, candtype]
594
- // Get corresponding method
595
590
exists ( Type t , string mname |
596
591
t = implementsIncludingInterfaceMethodsCand ( m , mname ) and
597
592
this = t .getMethod ( mname )
Original file line number Diff line number Diff line change @@ -1075,7 +1075,7 @@ int numberOfTypesWithMethodName(string name) { result = count(Type t | t.hasMeth
1075
1075
*
1076
1076
* This is used to restrict the set of interfaces to consider in the definition of `implements`,
1077
1077
* so it does not matter which method name is chosen (we use the most unusual name the interface
1078
- * require ; this is the most discriminating and so shrinks the search space the most).
1078
+ * requires ; this is the most discriminating and so shrinks the search space the most).
1079
1079
*/
1080
1080
private string getExampleMethodName ( InterfaceType i ) {
1081
1081
result = min ( string m | i .hasMethod ( m , _) | m order by numberOfTypesWithMethodName ( m ) )
You can’t perform that action at this time.
0 commit comments