openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gerdo...@apache.org
Subject svn commit: r733152 - in /incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans: AnnotationLiteral.java TypeLiteral.java
Date Fri, 09 Jan 2009 21:13:01 GMT
Author: gerdogdu
Date: Fri Jan  9 13:13:01 2009
New Revision: 733152

URL: http://svn.apache.org/viewvc?rev=733152&view=rev
Log:
Formatting sources.

Modified:
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java
    incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java?rev=733152&r1=733151&r2=733152&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/AnnotationLiteral.java
Fri Jan  9 13:13:01 2009
@@ -50,10 +50,12 @@
         if (superclass.equals(AnnotationLiteral.class))
         {
             return clazz;
-        } else if (superclass.equals(Object.class))
+        }
+        else if (superclass.equals(Object.class))
         {
             return null;
-        } else
+        }
+        else
         {
             return (getAnnotationLiteralSubclass(superclass));
         }
@@ -149,13 +151,16 @@
         try
         {
             return method.invoke(instance);
-        } catch (IllegalArgumentException e)
+        }
+        catch (IllegalArgumentException e)
         {
             throw new ExecutionException("Error checking value of member method " + method.getName()
+ " on " + method.getDeclaringClass(), e);
-        } catch (IllegalAccessException e)
+        }
+        catch (IllegalAccessException e)
         {
             throw new ExecutionException("Error checking value of member method " + method.getName()
+ " on " + method.getDeclaringClass(), e);
-        } catch (InvocationTargetException e)
+        }
+        catch (InvocationTargetException e)
         {
             throw new ExecutionException("Error checking value of member method " + method.getName()
+ " on " + method.getDeclaringClass(), e);
         }

Modified: incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java
URL: http://svn.apache.org/viewvc/incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java?rev=733152&r1=733151&r2=733152&view=diff
==============================================================================
--- incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java
(original)
+++ incubator/openwebbeans/trunk/webbeans-api/src/main/java/javax/webbeans/TypeLiteral.java
Fri Jan  9 13:13:01 2009
@@ -56,13 +56,16 @@
         if (type instanceof Class)
         {
             return (Class<T>) type;
-        } else if (type instanceof ParameterizedType)
+        }
+        else if (type instanceof ParameterizedType)
         {
             return (Class<T>) ((ParameterizedType) type).getRawType();
-        } else if (type instanceof GenericArrayType)
+        }
+        else if (type instanceof GenericArrayType)
         {
             return (Class<T>) Object[].class;
-        } else
+        }
+        else
         {
             throw new RuntimeException("Illegal type");
         }
@@ -75,10 +78,12 @@
         if (superclass.equals(TypeLiteral.class))
         {
             return clazz;
-        } else if (superclass.equals(Object.class))
+        }
+        else if (superclass.equals(Object.class))
         {
             return null;
-        } else
+        }
+        else
         {
             return (getTypeLiteralSubclass(superclass));
         }



Mime
View raw message