diff options
author | Andy Clement <aclement@gopivotal.com> | 2014-10-08 09:07:52 -0700 |
---|---|---|
committer | Andy Clement <aclement@gopivotal.com> | 2014-10-08 09:07:52 -0700 |
commit | b6aec92d1ec73033130ecbb5552bf54ceb1cb85f (patch) | |
tree | cec50f9ea51317f76f132c01233c8446c58c046a /bcel-builder/src | |
parent | 170b1cef3f6f2c4792eb4c07c76ab19bee9daca7 (diff) | |
download | aspectj-b6aec92d1ec73033130ecbb5552bf54ceb1cb85f.tar.gz aspectj-b6aec92d1ec73033130ecbb5552bf54ceb1cb85f.zip |
Use generics
Diffstat (limited to 'bcel-builder/src')
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/ExceptionConstants.java | 5 | ||||
-rw-r--r-- | bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/bcel-builder/src/org/aspectj/apache/bcel/ExceptionConstants.java b/bcel-builder/src/org/aspectj/apache/bcel/ExceptionConstants.java index 0c918c8ea..cf3d81308 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/ExceptionConstants.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/ExceptionConstants.java @@ -60,6 +60,7 @@ package org.aspectj.apache.bcel; * @version $Id: ExceptionConstants.java,v 1.5 2009/09/14 20:29:10 aclement Exp $ * @author <A HREF="http://www.inf.fu-berlin.de/~ehaase">E. Haase</A> */ +@SuppressWarnings("rawtypes") public interface ExceptionConstants { /** * The mother of all exceptions @@ -84,7 +85,7 @@ public interface ExceptionConstants { public static final Class<ExceptionInInitializerError> EXCEPTION_IN_INITIALIZER_ERROR = ExceptionInInitializerError.class; public static final Class<IncompatibleClassChangeError> INCOMPATIBLE_CLASS_CHANGE_ERROR = IncompatibleClassChangeError.class; public static final Class<AbstractMethodError> ABSTRACT_METHOD_ERROR = AbstractMethodError.class; - public static final Class ILLEGAL_ACCESS_ERROR = IllegalAccessError.class; + public static final Class<IllegalAccessError> ILLEGAL_ACCESS_ERROR = IllegalAccessError.class; public static final Class<InstantiationError> INSTANTIATION_ERROR = InstantiationError.class; public static final Class<NoSuchFieldError> NO_SUCH_FIELD_ERROR = NoSuchFieldError.class; public static final Class<NoSuchMethodError> NO_SUCH_METHOD_ERROR = NoSuchMethodError.class; @@ -100,7 +101,7 @@ public interface ExceptionConstants { public static final Class<NullPointerException> NULL_POINTER_EXCEPTION = NullPointerException.class; public static final Class<ArrayIndexOutOfBoundsException> ARRAY_INDEX_OUT_OF_BOUNDS_EXCEPTION = ArrayIndexOutOfBoundsException.class; public static final Class<ArithmeticException> ARITHMETIC_EXCEPTION = ArithmeticException.class; - public static final Class NEGATIVE_ARRAY_SIZE_EXCEPTION = NegativeArraySizeException.class; + public static final Class<NegativeArraySizeException> NEGATIVE_ARRAY_SIZE_EXCEPTION = NegativeArraySizeException.class; public static final Class<ClassCastException> CLASS_CAST_EXCEPTION = ClassCastException.class; public static final Class<IllegalMonitorStateException> ILLEGAL_MONITOR_STATE = IllegalMonitorStateException.class; diff --git a/bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java b/bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java index 7662250db..36d6d7d72 100644 --- a/bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java +++ b/bcel-builder/src/org/aspectj/apache/bcel/generic/Type.java @@ -473,9 +473,9 @@ public abstract class Type { return sb.toString(); } - public static String getSignature(java.lang.reflect.Constructor cons) { + public static String getSignature(java.lang.reflect.Constructor<?> cons) { StringBuffer sb = new StringBuffer("("); - Class[] params = cons.getParameterTypes(); // avoid clone + Class<?>[] params = cons.getParameterTypes(); // avoid clone for (int j = 0; j < params.length; j++) { sb.append(getType(params[j]).getSignature()); |