[webbeans-commits] Webbeans SVN: r2639 - extensions/trunk/logger/src/main/java/org/jboss/webbeans/log.

webbeans-commits at lists.jboss.org webbeans-commits at lists.jboss.org
Thu Apr 30 21:56:46 EDT 2009


Author: dan.j.allen
Date: 2009-04-30 21:56:45 -0400 (Thu, 30 Apr 2009)
New Revision: 2639

Modified:
   extensions/trunk/logger/src/main/java/org/jboss/webbeans/log/LoggerProducer.java
Log:
don't isEmpty() as it ties us to Java 6


Modified: extensions/trunk/logger/src/main/java/org/jboss/webbeans/log/LoggerProducer.java
===================================================================
--- extensions/trunk/logger/src/main/java/org/jboss/webbeans/log/LoggerProducer.java	2009-04-30 19:34:00 UTC (rev 2638)
+++ extensions/trunk/logger/src/main/java/org/jboss/webbeans/log/LoggerProducer.java	2009-05-01 01:56:45 UTC (rev 2639)
@@ -41,7 +41,7 @@
       Log log = null;
       String category = null;
       category = injectionPoint.getAnnotation(Logger.class).value();
-      if (category.isEmpty())
+      if (category.length() == 0)
       {
          log = Logging.getLog((Class<?>) injectionPoint.getMember().getDeclaringClass());
       }




More information about the weld-commits mailing list