Skip to content

Commit

Permalink
use Named interface for Members' set/getName() declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
mbenson committed Aug 6, 2013
1 parent 2eee41a commit 31b11ca
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 0 additions & 2 deletions api/src/main/java/org/jboss/forge/parser/java/Field.java
Expand Up @@ -13,8 +13,6 @@
*/
public interface Field<O extends JavaSource<O>> extends Member<O, Field<O>>
{
Field<O> setName(String name);

/**
* Get this field's type.
*/
Expand Down
4 changes: 1 addition & 3 deletions api/src/main/java/org/jboss/forge/parser/java/Member.java
Expand Up @@ -15,10 +15,8 @@
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*
*/
public interface Member<O extends JavaSource<O>, T> extends VisibilityScoped<T>, AnnotationTarget<O, T>, Origin<O>
public interface Member<O extends JavaSource<O>, T> extends VisibilityScoped<T>, AnnotationTarget<O, T>, Origin<O>, Named<T>
{
public String getName();

public boolean isFinal();

public T setFinal(boolean finl);
Expand Down
5 changes: 0 additions & 5 deletions api/src/main/java/org/jboss/forge/parser/java/Method.java
Expand Up @@ -40,11 +40,6 @@ public interface Method<O extends JavaSource<O>> extends Abstractable<Method<O>>
*/
public boolean isConstructor();

/**
* Set the name of this {@link Method}
*/
public Method<O> setName(final String name);

/**
* Get the return type of this {@link Method} or return null if the return type is void.
*/
Expand Down

0 comments on commit 31b11ca

Please sign in to comment.