Skip to content

Commit

Permalink
ROASTER-51: Renamed InterfaceCapableSource.implementsInterface to imp…
Browse files Browse the repository at this point in the history
…lementInterface
  • Loading branch information
gastaldi committed Sep 11, 2015
1 parent 8f26886 commit 8116b2c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public interface InterfaceCapableSource<T extends JavaSource<T>> extends Interfa
*
* @see Methods#addInheritedAbstractMethods(Class, MethodHolderSource)
*/
T implementsInterface(Class<?> type);
T implementInterface(Class<?> type);

/**
* Implements the specified {@link JavaInterface}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ public O addInterface(final Class<?> type)
}

@Override
public O implementsInterface(Class<?> type)
public O implementInterface(Class<?> type)
{
O obj = addInterface(type);
MethodSource<?>[] methods = Methods.addInheritedAbstractMethods(type, this);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public void testAddInterfaceWithReflectedMethod() throws Exception
{
JavaClassSource javaClass = Roaster.create(JavaClassSource.class);
Class<?> type = Enumeration.class;
javaClass.implementsInterface(type);
javaClass.implementInterface(type);
Assert.assertThat(javaClass.getMethods().size(), is(2));
Assert.assertNotNull(javaClass.getMethod("hasMoreElements"));
Assert.assertNotNull(javaClass.getMethod("nextElement"));
Expand Down

0 comments on commit 8116b2c

Please sign in to comment.