You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by si...@apache.org on 2011/06/14 15:44:32 UTC
svn commit: r1135567 -
/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java
Author: simonetripodi
Date: Tue Jun 14 13:44:32 2011
New Revision: 1135567
URL: http://svn.apache.org/viewvc?rev=1135567&view=rev
Log:
dropped the abuse of 'this' keyword
Modified:
commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java
Modified: commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java
URL: http://svn.apache.org/viewvc/commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java?rev=1135567&r1=1135566&r2=1135567&view=diff
==============================================================================
--- commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java (original)
+++ commons/sandbox/meiyo/trunk/src/main/java/org/apache/commons/meiyo/classvisitor/Key.java Tue Jun 14 13:44:32 2011
@@ -40,12 +40,12 @@ final class Key
protected Class<? extends AnnotatedElement> getAnnotatedElementType()
{
- return this.annotatedElementType;
+ return annotatedElementType;
}
protected Class<? extends Annotation> getAnnotationType()
{
- return this.annotationType;
+ return annotationType;
}
/**
@@ -56,8 +56,8 @@ final class Key
{
final int prime = 31;
int result = 1;
- result = prime * result + ( ( this.annotatedElementType == null ) ? 0 : this.annotatedElementType.hashCode() );
- result = prime * result + ( ( this.annotationType == null ) ? 0 : this.annotationType.hashCode() );
+ result = prime * result + ( ( annotatedElementType == null ) ? 0 : annotatedElementType.hashCode() );
+ result = prime * result + ( ( annotationType == null ) ? 0 : annotationType.hashCode() );
return result;
}
@@ -82,26 +82,26 @@ final class Key
Key other = (Key) obj;
- if ( this.annotatedElementType == null )
+ if ( annotatedElementType == null )
{
if ( other.getAnnotatedElementType() != null )
{
return false;
}
}
- else if ( !this.annotatedElementType.equals( other.getAnnotatedElementType() ) )
+ else if ( !annotatedElementType.equals( other.getAnnotatedElementType() ) )
{
return false;
}
- if ( this.annotationType == null )
+ if ( annotationType == null )
{
if ( other.getAnnotationType() != null )
{
return false;
}
}
- else if ( !this.annotationType.equals( other.getAnnotationType() ) )
+ else if ( !annotationType.equals( other.getAnnotationType() ) )
{
return false;
}
@@ -115,8 +115,8 @@ final class Key
@Override
public String toString()
{
- return String.format( "Key [annotatedElementType=%s, annotationType=%s]", this.annotatedElementType,
- this.annotationType );
+ return String.format( "Key [annotatedElementType=%s, annotationType=%s]",
+ annotatedElementType, annotationType );
}
}