Title: [1456] trunk/qdox/src/main/java/com/thoughtworks/qdox/model/impl/DefaultJavaWildcardType.java: codeformatting, code cleanup, javadoc
Revision
1456
Author
rfscholte
Date
2011-12-28 05:39:46 -0600 (Wed, 28 Dec 2011)

Log Message

codeformatting, code cleanup, javadoc

Modified Paths


Diff

Modified: trunk/qdox/src/main/java/com/thoughtworks/qdox/model/impl/DefaultJavaWildcardType.java (1455 => 1456)


--- trunk/qdox/src/main/java/com/thoughtworks/qdox/model/impl/DefaultJavaWildcardType.java	2011-12-28 11:19:55 UTC (rev 1455)
+++ trunk/qdox/src/main/java/com/thoughtworks/qdox/model/impl/DefaultJavaWildcardType.java	2011-12-28 11:39:46 UTC (rev 1456)
@@ -21,56 +21,59 @@
  * under the License.
  */
 
-
 /**
- * This class supports both the 'super' and 'extends' wildcards.
- * For <?> you must use the normal Type, because ? itself can't be generic 
+ * Equivalent of {@link java.lang.reflect.WildcardType}
+ * This class supports both the 'super' and 'extends' wildcards. For <?> you must use the normal Type, because ?
+ * itself can't be generic
  * 
  * @author Robert Scholte
- *
  */
-public class DefaultJavaWildcardType extends DefaultJavaType implements JavaWildcardType {
+public class DefaultJavaWildcardType
+    extends DefaultJavaType
+    implements JavaWildcardType
+{
 
     /**
      * A wildcardExpression is either <code>super</code> or <code>extends</code> or <code>null</code>
      */
-	private String wildcardExpressionType = null;
-	
-	public DefaultJavaWildcardType() {
-		super("?");
-	}
-	
+    private String wildcardExpressionType = null;
+
+    public DefaultJavaWildcardType()
+    {
+        super( "?" );
+    }
+
     public DefaultJavaWildcardType( String name, String wildcardExpressionType, JavaClassParent context )
     {
         super( name, context );
         this.wildcardExpressionType = wildcardExpressionType;
     }
 
-	public String getGenericValue() {
-		String result = "";
-		if( wildcardExpressionType != null ) 
-		{
-			result += "? " + wildcardExpressionType+ " ";
-		}
-		result += super.getGenericValue();
-		return result;
-	}
-	
-	@Override
-	public String getFullyQualifiedName()
-	{
-	    return "?";
-	}
-	
-	@Override
-	public String getGenericFullyQualifiedName()
-	{
-	    String result = "";
-        if( wildcardExpressionType != null ) 
+    @Override
+    public String getGenericValue()
+    {
+        String result = "";
+        if ( wildcardExpressionType != null )
         {
-            result += "? " + wildcardExpressionType+ " ";
+            result += "? " + wildcardExpressionType + " ";
         }
-        result += super.getFullyQualifiedName();
-        return result; 
-	}
-}
+        return result + super.getGenericValue();
+    }
+
+    @Override
+    public String getFullyQualifiedName()
+    {
+        return "?";
+    }
+
+    @Override
+    public String getGenericFullyQualifiedName()
+    {
+        String result = "";
+        if ( wildcardExpressionType != null )
+        {
+            result += "? " + wildcardExpressionType + " ";
+        }
+        return result + super.getFullyQualifiedName();
+    }
+}
\ No newline at end of file

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to