Author: rajdavies
Date: Thu Mar 12 11:03:46 2009
New Revision: 752833
URL: http://svn.apache.org/viewvc?rev=752833&view=rev
Log:
remove depreciated code
Modified:
activemq/activemq-blaze/trunk/src/main/java/org/apache/activeblaze/impl/destination/DestinationMatch.java
Modified:
activemq/activemq-blaze/trunk/src/main/java/org/apache/activeblaze/impl/destination/DestinationMatch.java
URL:
http://svn.apache.org/viewvc/activemq/activemq-blaze/trunk/src/main/java/org/apache/activeblaze/impl/destination/DestinationMatch.java?rev=752833&r1=752832&r2=752833&view=diff
==============================================================================
---
activemq/activemq-blaze/trunk/src/main/java/org/apache/activeblaze/impl/destination/DestinationMatch.java
(original)
+++
activemq/activemq-blaze/trunk/src/main/java/org/apache/activeblaze/impl/destination/DestinationMatch.java
Thu Mar 12 11:03:46 2009
@@ -17,6 +17,7 @@
package org.apache.activeblaze.impl.destination;
import org.apache.activemq.protobuf.Buffer;
+import org.apache.activemq.protobuf.UTF8Buffer;
/**
* Matches a Destination Subject to wildcards
@@ -35,7 +36,7 @@
* @return true if its a match
*/
public static boolean isMatch(String destination, String match) {
- return isMatch(new Buffer(destination), new Buffer(match));
+ return isMatch(new UTF8Buffer(destination), new UTF8Buffer(match));
}
/**
* See if the destination matches with wild cards
@@ -45,7 +46,7 @@
* @return true if its a match
*/
public static boolean isMatch(Buffer destination, String match) {
- return isMatch(destination, new Buffer(match));
+ return isMatch(destination, new UTF8Buffer(match));
}
/**
@@ -56,7 +57,7 @@
* @return true if its a match
*/
public static boolean isMatch(String destination, Buffer match) {
- return isMatch(new Buffer(destination), match);
+ return isMatch(new UTF8Buffer(destination), match);
}
/**
@@ -64,7 +65,7 @@
*
* @param destination
* @param match
- * @return
+ * @return true if its a match
*/
public static boolean isMatch(Buffer destination, Buffer match) {
boolean result = true;