From 4045d47daa12ed5fa0a09c669c2c55d2a5e5590a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Sat, 26 Mar 2016 14:47:41 +0200 Subject: [PATCH] Spelling fixes --- .../org/apache/activemq/artemis/jms/client/ActiveMQSession.java | 2 +- .../activemq/artemis/selector/filter/ComparisonExpression.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {