mirror of https://github.com/apache/activemq.git
Applied patch reported by christopher.kingsbury@gmail.com
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@370926 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ef94b843cc
commit
c3c0ea7265
|
@ -16,14 +16,13 @@
|
|||
*/
|
||||
package org.apache.activemq.util;
|
||||
|
||||
import javax.management.ObjectName;
|
||||
|
||||
public class JMXSupport {
|
||||
static public String encodeObjectNamePart(String part) {
|
||||
//return ObjectName.quote(part);
|
||||
String answer = part.replaceAll("[\\:\\,\\'\\\"]", "_");
|
||||
answer = answer.replaceAll("\\?", "&qe;");
|
||||
answer = answer.replaceAll("=", "&");
|
||||
answer = answer.replaceAll("\\*", "*");
|
||||
return answer;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue