Author: struberg
Date: Wed Jul 18 22:04:36 2012
New Revision: 1363143
URL: http://svn.apache.org/viewvc?rev=1363143&view=rev
Log:
OWB-683 remove unused ClassUtil methods
Modified:
openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java
openwebbeans/trunk/webbeans-test/cditest-owb/src/main/java/org/apache/webbeans/cditest/owb/CdiTestOpenWebBeansContainer.java
Modified:
openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java
URL:
http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java?rev=1363143&r1=1363142&r2=1363143&view=diff
==============================================================================
---
openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java
(original)
+++
openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java
Wed Jul 18 22:04:36 2012
@@ -797,20 +797,6 @@ public final class ClassUtil
return false;
}
-
- /**
- * Check parametrized bean type and parametrized
- * required types.
- * @param beanTypeArg parametrized bean type
- * @param requiredTypeArg parametrized required type
- * @return true if types are assignables
- * @deprecated use {@link #checkBeanAndRequiredTypeIsParametrized(Type,
Type)}
- */
- @Deprecated
- public static boolean checkBeanAndRequiredTypeisParametrized(Type
beanTypeArg, Type requiredTypeArg)
- {
- return checkBeanAndRequiredTypeIsParametrized(beanTypeArg,
requiredTypeArg);
- }
/**
* Check parametrized bean type and parametrized
@@ -844,22 +830,6 @@ public final class ClassUtil
return false;
}
-
- /**
- * Check bean type and required type.
- * <p>
- * Required type is a wildcard type.
- * </p>
- * @param beanTypeArg bean type
- * @param requiredTypeArg required type
- * @return true if condition satisfies
- * @deprecated use {@link #checkRequiredTypeIsWildCard(Type, Type)}
- */
- @Deprecated
- public static boolean checkRequiredTypeisWildCard(Type beanTypeArg, Type
requiredTypeArg)
- {
- return checkRequiredTypeIsWildCard(beanTypeArg, requiredTypeArg);
- }
/**
* Check bean type and required type.
@@ -1149,18 +1119,6 @@ public final class ClassUtil
* Learn whether the specified class is defined with type parameters.
* @param clazz to check
* @return true if there are type parameters
- * @deprecated use {@link #isDefinitionContainsTypeVariables(Class)}
- */
- @Deprecated
- public static boolean isDefinitionConstainsTypeVariables(Class<?> clazz)
- {
- return isDefinitionContainsTypeVariables(clazz);
- }
-
- /**
- * Learn whether the specified class is defined with type parameters.
- * @param clazz to check
- * @return true if there are type parameters
* @since 1.1.1
*/
public static boolean isDefinitionContainsTypeVariables(Class<?> clazz)
@@ -1176,20 +1134,6 @@ public final class ClassUtil
* Get the actual type arguments of a type.
* @param type
* @return array of type arguments available
- * @deprecated use {@link #getActualTypeArguments(Type)}
- */
- @Deprecated
- public static Type[] getActualTypeArguements(Type type)
- {
- return getActualTypeArguments(type);
- }
-
- /**
- * Returns declared type arguments if {@code type} is a
- * {@link ParameterizedType} instance, else an empty array.
- * Get the actual type arguments of a type.
- * @param type
- * @return array of type arguments available
* @since 1.1.1
*/
public static Type[] getActualTypeArguments(Type type)
@@ -1340,19 +1284,6 @@ public final class ClassUtil
* @param subClassMethod potentially overriding
* @param superClassMethod potentially overridden
* @return true if overridden
- * @deprecated use {@link #isOverridden(Method, Method)}
- */
- @Deprecated
- public static boolean isOverriden(Method subClassMethod, Method
superClassMethod)
- {
- return isOverridden(subClassMethod, superClassMethod);
- }
-
- /**
- * Learn whether <code>superClassMethod</code> is overridden by
<code>subClassMethod</code>.
- * @param subClassMethod potentially overriding
- * @param superClassMethod potentially overridden
- * @return true if overridden
* @since 1.1.1
*/
public static boolean isOverridden(Method subClassMethod, Method
superClassMethod)
Modified:
openwebbeans/trunk/webbeans-test/cditest-owb/src/main/java/org/apache/webbeans/cditest/owb/CdiTestOpenWebBeansContainer.java
URL:
http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-test/cditest-owb/src/main/java/org/apache/webbeans/cditest/owb/CdiTestOpenWebBeansContainer.java?rev=1363143&r1=1363142&r2=1363143&view=diff
==============================================================================
---
openwebbeans/trunk/webbeans-test/cditest-owb/src/main/java/org/apache/webbeans/cditest/owb/CdiTestOpenWebBeansContainer.java
(original)
+++
openwebbeans/trunk/webbeans-test/cditest-owb/src/main/java/org/apache/webbeans/cditest/owb/CdiTestOpenWebBeansContainer.java
Wed Jul 18 22:04:36 2012
@@ -81,13 +81,14 @@ public class CdiTestOpenWebBeansContaine
public void startApplicationScope() throws Exception
{
- WebBeansContext webBeansContext = WebBeansContext.getInstance();
+ @SuppressWarnings("deprecation") WebBeansContext webBeansContext =
WebBeansContext.getInstance();
ContextFactory contextFactory = webBeansContext.getContextFactory();
contextFactory.initApplicationContext(servletContext);
}
- public void startConversationScope() throws Exception
+ @SuppressWarnings("deprecation")
+ public void startConversationScope() throws Exception
{
WebBeansContext webBeansContext = WebBeansContext.getInstance();
ContextFactory contextFactory = webBeansContext.getContextFactory();