diff --git a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java index 9d510f5489..9cdcecfd4c 100644 --- a/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java +++ b/artemis-jms-client/src/main/java/org/apache/activemq/artemis/jms/client/ActiveMQSession.java @@ -542,7 +542,7 @@ public class ActiveMQSession implements QueueSession, TopicSession { if (dest.isQueue()) { // This is not really possible unless someone makes a mistake on code - // createSharedConsumer only accpets Topics by declaration + // createSharedConsumer only accepts Topics by declaration throw new RuntimeException("Internal error: createSharedConsumer is only meant for Topics"); } diff --git a/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java b/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java index 9389e01468..98882c94b4 100755 --- a/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java +++ b/artemis-selector/src/main/java/org/apache/activemq/artemis/selector/filter/ComparisonExpression.java @@ -164,7 +164,7 @@ public abstract class ComparisonExpression extends BinaryExpression implements B public static BooleanExpression createLike(Expression left, String right, String escape) { if (escape != null && escape.length() != 1) { - throw new RuntimeException("The ESCAPE string litteral is invalid. It can only be one character. Litteral used: " + escape); + throw new RuntimeException("The ESCAPE string literal is invalid. It can only be one character. Literal used: " + escape); } int c = -1; if (escape != null) {