METAGEN-67 Formatting

This commit is contained in:
Hardy Ferentschik 2012-01-17 11:55:18 +01:00 committed by Strong Liu
parent eb4521b1e9
commit 170d2c9bff
4 changed files with 435 additions and 451 deletions

View File

@ -14,8 +14,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.hibernate.jpamodelgen.util; package org.hibernate.jpamodelgen.util;
import java.util.ArrayList; import java.util.ArrayList;

View File

@ -14,8 +14,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.hibernate.jpamodelgen.util; package org.hibernate.jpamodelgen.util;
import java.io.Serializable; import java.io.Serializable;

View File

@ -14,8 +14,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.hibernate.jpamodelgen.util; package org.hibernate.jpamodelgen.util;
/** /**

View File

@ -14,8 +14,6 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
*/ */
package org.hibernate.jpamodelgen.util; package org.hibernate.jpamodelgen.util;
import java.lang.annotation.Annotation; import java.lang.annotation.Annotation;
@ -74,7 +72,6 @@ public final class TypeUtils {
PRIMITIVES.put( "float", "Float" ); PRIMITIVES.put( "float", "Float" );
PRIMITIVES.put( "double", "Double" ); PRIMITIVES.put( "double", "Double" );
} }
private TypeUtils() { private TypeUtils() {
@ -130,7 +127,8 @@ public final class TypeUtils {
/** /**
* Returns {@code true} if the provided annotation type is of the same type as the provided class, {@code false} otherwise. * Returns {@code true} if the provided annotation type is of the same type as the provided class, {@code false} otherwise.
* This method uses the string class names for comparison. See also {@link http://www.retep.org/2009/02/getting-class-values-from-annotations.html}. * This method uses the string class names for comparison. See also
* <a href="http://www.retep.org/2009/02/getting-class-values-from-annotations.html">getting-class-values-from-annotations</a>.
* *
* @param annotationMirror The annotation mirror * @param annotationMirror The annotation mirror
* @param clazz the class name to check against * @param clazz the class name to check against
@ -144,7 +142,8 @@ public final class TypeUtils {
/** /**
* Returns {@code true} if the provided annotation type is of the same type as the provided class, {@code false} otherwise. * Returns {@code true} if the provided annotation type is of the same type as the provided class, {@code false} otherwise.
* This method uses the string class names for comparison. See also {@link http://www.retep.org/2009/02/getting-class-values-from-annotations.html}. * This method uses the string class names for comparison. See also
* <a href="http://www.retep.org/2009/02/getting-class-values-from-annotations.html">getting-class-values-from-annotations</a>.
* *
* @param annotationMirror The annotation mirror * @param annotationMirror The annotation mirror
* @param fqcn the fully qualified class name to check against * @param fqcn the fully qualified class name to check against
@ -159,15 +158,6 @@ public final class TypeUtils {
return annotationClassName.equals( fqcn ); return annotationClassName.equals( fqcn );
} }
public static boolean isTypeElementOfType(TypeElement element, Class<?> clazz) {
assert element != null;
assert clazz != null;
String elementClassName = element.getQualifiedName().toString();
String className = clazz.getName();
return elementClassName.equals( className );
}
/** /**
* Checks whether the {@code Element} hosts the annotation with the given fully qualified class name. * Checks whether the {@code Element} hosts the annotation with the given fully qualified class name.
* *