Title: [1426] trunk/qdox/src/main/java/com/thoughtworks/qdox/model: Move DefaultDocletTagFactory to separate package

Diff

Modified: trunk/qdox/src/main/java/com/thoughtworks/qdox/library/AbstractClassLibrary.java (1425 => 1426)

--- trunk/qdox/src/main/java/com/thoughtworks/qdox/library/AbstractClassLibrary.java	2011-10-17 21:19:44 UTC (rev 1425)
+++ trunk/qdox/src/main/java/com/thoughtworks/qdox/library/AbstractClassLibrary.java	2011-10-17 21:33:07 UTC (rev 1426)
@@ -27,10 +27,10 @@
 
 import com.thoughtworks.qdox.builder.ModelBuilder;
 import com.thoughtworks.qdox.builder.ModelBuilderFactory;
-import com.thoughtworks.qdox.model.DefaultDocletTagFactory;
 import com.thoughtworks.qdox.model.JavaClass;
 import com.thoughtworks.qdox.model.JavaPackage;
 import com.thoughtworks.qdox.model.JavaSource;
+import com.thoughtworks.qdox.model.impl.DefaultDocletTagFactory;
 import com.thoughtworks.qdox.model.impl.DefaultJavaPackage;
 import com.thoughtworks.qdox.parser.structs.ClassDef;
 import com.thoughtworks.qdox.writer.ModelWriterFactory;

Deleted: trunk/qdox/src/main/java/com/thoughtworks/qdox/model/DefaultDocletTagFactory.java (1425 => 1426)

--- trunk/qdox/src/main/java/com/thoughtworks/qdox/model/DefaultDocletTagFactory.java	2011-10-17 21:19:44 UTC (rev 1425)
+++ trunk/qdox/src/main/java/com/thoughtworks/qdox/model/DefaultDocletTagFactory.java	2011-10-17 21:33:07 UTC (rev 1426)
@@ -1,42 +0,0 @@
-package com.thoughtworks.qdox.model;
-
-import com.thoughtworks.qdox.model.impl.AbstractJavaModel;
-import com.thoughtworks.qdox.model.impl.DefaultDocletTag;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-/**
- * @author Aslak Hellesøy
- * @version $Revision$
- */
-public class DefaultDocletTagFactory implements DocletTagFactory {
-
-    public DocletTag createDocletTag(
-        String tag, String text, 
-        JavaAnnotatedElement context, int lineNumber
-    ) {
-        return new DefaultDocletTag(tag, text, context, lineNumber);
-    }
-
-    public DocletTag createDocletTag(String tag, String text) {
-        return createDocletTag(tag, text, null, 0);
-    }
-    
-}

Copied: trunk/qdox/src/main/java/com/thoughtworks/qdox/model/impl/DefaultDocletTagFactory.java (from rev 1388, trunk/qdox/src/main/java/com/thoughtworks/qdox/model/DefaultDocletTagFactory.java) (0 => 1426)

--- trunk/qdox/src/main/java/com/thoughtworks/qdox/model/impl/DefaultDocletTagFactory.java	                        (rev 0)
+++ trunk/qdox/src/main/java/com/thoughtworks/qdox/model/impl/DefaultDocletTagFactory.java	2011-10-17 21:33:07 UTC (rev 1426)
@@ -0,0 +1,43 @@
+package com.thoughtworks.qdox.model.impl;
+
+import com.thoughtworks.qdox.model.DocletTag;
+import com.thoughtworks.qdox.model.DocletTagFactory;
+import com.thoughtworks.qdox.model.JavaAnnotatedElement;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+/**
+ * @author Aslak Hellesøy
+ * @version $Revision$
+ */
+public class DefaultDocletTagFactory implements DocletTagFactory {
+
+    public DocletTag createDocletTag(
+        String tag, String text, 
+        JavaAnnotatedElement context, int lineNumber
+    ) {
+        return new DefaultDocletTag(tag, text, context, lineNumber);
+    }
+
+    public DocletTag createDocletTag(String tag, String text) {
+        return createDocletTag(tag, text, null, 0);
+    }
+    
+}

Modified: trunk/qdox/src/test/java/com/thoughtworks/qdox/builder/ModelBuilderTest.java (1425 => 1426)

--- trunk/qdox/src/test/java/com/thoughtworks/qdox/builder/ModelBuilderTest.java	2011-10-17 21:19:44 UTC (rev 1425)
+++ trunk/qdox/src/test/java/com/thoughtworks/qdox/builder/ModelBuilderTest.java	2011-10-17 21:33:07 UTC (rev 1426)
@@ -5,12 +5,12 @@
 import junit.framework.TestCase;
 
 import com.thoughtworks.qdox.library.ClassNameLibrary;
-import com.thoughtworks.qdox.model.DefaultDocletTagFactory;
 import com.thoughtworks.qdox.model.JavaClass;
 import com.thoughtworks.qdox.model.JavaConstructor;
 import com.thoughtworks.qdox.model.JavaField;
 import com.thoughtworks.qdox.model.JavaMethod;
 import com.thoughtworks.qdox.model.JavaSource;
+import com.thoughtworks.qdox.model.impl.DefaultDocletTagFactory;
 import com.thoughtworks.qdox.model.impl.Type;
 import com.thoughtworks.qdox.parser.structs.ClassDef;
 import com.thoughtworks.qdox.parser.structs.FieldDef;

Modified: trunk/qdox/src/test/java/com/thoughtworks/qdox/model/impl/DefaultDocletTagTest.java (1425 => 1426)

--- trunk/qdox/src/test/java/com/thoughtworks/qdox/model/impl/DefaultDocletTagTest.java	2011-10-17 21:19:44 UTC (rev 1425)
+++ trunk/qdox/src/test/java/com/thoughtworks/qdox/model/impl/DefaultDocletTagTest.java	2011-10-17 21:33:07 UTC (rev 1426)
@@ -3,7 +3,6 @@
 import java.util.Map;
 
 import com.thoughtworks.qdox.model.AbstractDocletTagTest;
-import com.thoughtworks.qdox.model.DefaultDocletTagFactory;
 import com.thoughtworks.qdox.model.DocletTagFactory;
 import com.thoughtworks.qdox.model.util.SerializationUtils;
 


To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email

Reply via email to