hadoop-zookeeper-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akor...@apache.org
Subject svn commit: r678868 - /hadoop/zookeeper/trunk/src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java
Date Tue, 22 Jul 2008 19:38:55 GMT
Author: akornev
Date: Tue Jul 22 12:38:54 2008
New Revision: 678868

URL: http://svn.apache.org/viewvc?rev=678868&view=rev
Log:
Replaced a java 6 method with a java 5 equivalent

Modified:
    hadoop/zookeeper/trunk/src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java

Modified: hadoop/zookeeper/trunk/src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java
URL: http://svn.apache.org/viewvc/hadoop/zookeeper/trunk/src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java?rev=678868&r1=678867&r2=678868&view=diff
==============================================================================
--- hadoop/zookeeper/trunk/src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java (original)
+++ hadoop/zookeeper/trunk/src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java Tue Jul
22 12:38:54 2008
@@ -143,7 +143,7 @@
     private int tokenize(StringBuilder sb, String path, int index){
         String[] tokens = path.split("/");
         for (String s: tokens) {
-            if (s.isEmpty())
+            if (s.length()==0)
                 continue;
             sb.append("name").append(index++)
                     .append("=").append(s).append(",");



Mime
View raw message