openwebbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1369237 - in /openwebbeans/trunk: webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java webbeans-web/src/main/java/org/apache/webbeans/web/scanner/WebScannerService.java
Date Fri, 03 Aug 2012 22:35:49 GMT
Author: struberg
Date: Fri Aug  3 22:35:48 2012
New Revision: 1369237

URL: http://svn.apache.org/viewvc?rev=1369237&view=rev
Log:
OWB-691 remove unused variable and String ct

Modified:
    openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java
    openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/scanner/WebScannerService.java

Modified: openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java?rev=1369237&r1=1369236&r2=1369237&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java
(original)
+++ openwebbeans/trunk/webbeans-impl/src/main/java/org/apache/webbeans/decorator/WebBeansDecorator.java
Fri Aug  3 22:35:48 2012
@@ -165,14 +165,14 @@ public class WebBeansDecorator<T> extend
                     "But the decorator bean : " + toString() + " has none");
         }
         
-        String message = new String("Error in decorator : "+ toString() + ". The delegate
injection point must be an injected field, " +
-                "initializer method parameter or bean constructor method parameter. ");
-        
         if(!(ipFound.getMember() instanceof Constructor))
         {
             AnnotatedElement element = (AnnotatedElement)ipFound.getMember();
             if(!element.isAnnotationPresent(Inject.class))
             {
+                String message = "Error in decorator : "+ toString() + ". The delegate injection
point must be an injected field, " +
+                        "initializer method parameter or bean constructor method parameter.";
+
                 throw new WebBeansConfigurationException(message);
             }                
         }

Modified: openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/scanner/WebScannerService.java
URL: http://svn.apache.org/viewvc/openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/scanner/WebScannerService.java?rev=1369237&r1=1369236&r2=1369237&view=diff
==============================================================================
--- openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/scanner/WebScannerService.java
(original)
+++ openwebbeans/trunk/webbeans-web/src/main/java/org/apache/webbeans/web/scanner/WebScannerService.java
Fri Aug  3 22:35:48 2012
@@ -100,7 +100,6 @@ public class WebScannerService extends A
     protected Set<String> createURLFromMarkerFile() throws Exception
     {
         Set<String> listURL = new HashSet<String>();
-        ClassLoader parentClassLoader = WebBeansUtil.getCurrentClassLoader().getParent();
 
         // Root with beans.xml marker.
         String[] urls = findBeansXmlBases(META_INF_BEANS_XML, WebBeansUtil.getCurrentClassLoader());



Mime
View raw message