You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Hiram Chirino (JIRA)" <ji...@apache.org> on 2008/07/18 18:18:31 UTC
[jira] Updated: (ZOOKEEPER-81) JMX module is using 1 java 6 method
that has a java 5 equivalent
[ https://issues.apache.org/jira/browse/ZOOKEEPER-81?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hiram Chirino updated ZOOKEEPER-81:
-----------------------------------
Status: Patch Available (was: Open)
{code}
Index: src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java
===================================================================
--- src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java (revision 677957)
+++ src/java/jmx/org/apache/zookeeper/jmx/MBeanRegistry.java (working copy)
@@ -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(",");
{code}
> JMX module is using 1 java 6 method that has a java 5 equivalent
> ----------------------------------------------------------------
>
> Key: ZOOKEEPER-81
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-81
> Project: Zookeeper
> Issue Type: Improvement
> Components: server
> Reporter: Hiram Chirino
> Attachments: ZOOKEEPER-81.patch
>
>
> It would be nice if the jmx module compiled and ran on java 5 too.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.