openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1427160 - in /openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util: ClassUtil.java WebBeansUtil.java
Date Mon, 31 Dec 2012 16:12:01 GMT
Author: struberg
Date: Mon Dec 31 16:12:00 2012
New Revision: 1427160

URL: http://svn.apache.org/viewvc?rev=1427160&view=rev
Log:
OWB-549 get rid of the rest of trivial methods


Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/ClassUtil.java
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.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=1427160&r1=1427159&r2=1427160&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
Mon Dec 31 16:12:00 2012
@@ -194,18 +194,6 @@ public final class ClassUtil
         return getClazz(type);
     }
 
-    /**
-     * Gets the declared methods of the given class.
-     * 
-     * @param clazz class instance
-     * @return the declared methods
-     * @deprecated inherently unsafe!
-     */
-    public static Method[] getDeclaredMethods(Class<?> clazz)
-    {
-        Asserts.nullCheckForClass(clazz);
-        return SecurityUtil.doPrivilegedGetDeclaredMethods(clazz);
-    }
 
     /**
      * Check method throws checked exception or not.
@@ -277,15 +265,6 @@ public final class ClassUtil
 
     }
 
-    /**
-     * @deprecated it's better to do such easy things directly in the code
-     */
-    public static Class<?>[] getMethodParameterTypes(Method method)
-    {
-        Asserts.nullCheckForMethod(method);
-        return method.getParameterTypes();
-    }
-
     private static Set<String> getObjectMethodNames()
     {
         if (objectMethodNames == null)
@@ -336,20 +315,6 @@ public final class ClassUtil
     }
 
     /**
-     * Gets java package if exist.
-     * 
-     * @param packageName package name
-     * @return the package with given name
-     * @deprecated it's better to do such easy things directly in the code
-     */
-    public Package getPackage(String packageName)
-    {
-        Asserts.assertNotNull(packageName, "packageName parameter can not be null");
-
-        return Package.getPackage(packageName);
-    }
-
-    /**
      * Returns true if type is an instance of <code>ParameterizedType</code>
      * else otherwise.
      * 
@@ -1051,16 +1016,6 @@ public final class ClassUtil
     }
 
     /**
-     * @deprecated it's better to do such easy things directly in the code
-     */
-    public static boolean isArray(Class<?> clazz)
-    {
-        Asserts.nullCheckForClass(clazz);
-
-        return clazz.isArray();
-    }
-
-    /**
      * Learn whether the specified class is defined with type parameters.
      * @param clazz to check
      * @return true if there are type parameters

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java?rev=1427160&r1=1427159&r2=1427160&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/util/WebBeansUtil.java
Mon Dec 31 16:12:00 2012
@@ -1766,7 +1766,7 @@ public final class WebBeansUtil
                     violationMessage.addLine("It isn't possible to proxy a primitive type
(" + beanClass.getName(), ")");
                 }
 
-                if(ClassUtil.isArray(beanClass))
+                if(beanClass.isArray())
                 {
                     violationMessage.addLine("It isn't possible to proxy an array type (",
beanClass.getName(), ")");
                 }



Mime
View raw message