git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@550450 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2007-06-25 10:55:11 +00:00
parent d36c0d4de7
commit 5d41efce6a
4 changed files with 9 additions and 11 deletions

View File

@ -109,7 +109,7 @@ public class ShutdownCommand extends AbstractJmxCommand {
GlobalWriter.print("Stopping broker: " + brokerName);
try {
server.invoke(brokerObjName, "terminateJVM", new Object[] {new Integer(0)}, new String[] {"int"});
server.invoke(brokerObjName, "terminateJVM", new Object[] {Integer.valueOf(0)}, new String[] {"int"});
GlobalWriter.print("Succesfully stopped broker: " + brokerName);
} catch (Exception e) {
// TODO: Check exceptions throwned

View File

@ -39,7 +39,6 @@ public class WildcardToMsgSelectorTransformFilter extends WildcardTransformFilte
int pos = key.indexOf("=");
if (pos >= 0) {
val = key.substring(pos + 1);
key = key.substring(0, pos);
}
// If the value contains wildcards and is enclose by '

View File

@ -39,7 +39,6 @@ public class WildcardToRegExTransformFilter extends WildcardTransformFilter {
int pos = key.indexOf("=");
if (pos >= 0) {
val = key.substring(pos + 1);
key = key.substring(0, pos);
}
// If the value contains wildcards

View File

@ -82,13 +82,13 @@ public class JmxMBeansUtil {
}
public static String createQueryString(String query, List params) {
String output = query;
int count = 1;
for (Iterator i = params.iterator(); i.hasNext();) {
query.replaceAll("%" + count++, i.next().toString());
output = output.replaceAll("%" + count++, i.next().toString());
}
return query;
return output;
}
public static QueryFilter createMBeansObjectNameQuery(JMXServiceURL jmxUrl) {