From d9558dfd8ba2f08b36afc0fcddc675068c7d7096 Mon Sep 17 00:00:00 2001 From: Christian Amend Date: Wed, 26 Aug 2015 10:40:54 +0200 Subject: [PATCH] [OLINGO-659] Small debug output enhancement part2 --- .../olingo/server/core/debug/DebugTabUri.java | 2 +- .../core/debug/ExpressionJsonVisitor.java | 22 +++++++++---------- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/lib/server-core/src/main/java/org/apache/olingo/server/core/debug/DebugTabUri.java b/lib/server-core/src/main/java/org/apache/olingo/server/core/debug/DebugTabUri.java index fb2c5e0e9..716b65ed2 100644 --- a/lib/server-core/src/main/java/org/apache/olingo/server/core/debug/DebugTabUri.java +++ b/lib/server-core/src/main/java/org/apache/olingo/server/core/debug/DebugTabUri.java @@ -205,7 +205,7 @@ public class DebugTabUri implements DebugTab { try { expressionJsonString = expression.accept(new ExpressionJsonVisitor()); } catch (Exception e) { - expressionJsonString = "Exception in Debug Filter visitor occoured: " + e.getMessage(); + expressionJsonString = "Exception in Debug Filter visitor occurred: " + e.getMessage(); } gen.writeRawValue(expressionJsonString); diff --git a/lib/server-core/src/main/java/org/apache/olingo/server/core/debug/ExpressionJsonVisitor.java b/lib/server-core/src/main/java/org/apache/olingo/server/core/debug/ExpressionJsonVisitor.java index 5e130e9ab..b09a991ed 100644 --- a/lib/server-core/src/main/java/org/apache/olingo/server/core/debug/ExpressionJsonVisitor.java +++ b/lib/server-core/src/main/java/org/apache/olingo/server/core/debug/ExpressionJsonVisitor.java @@ -65,7 +65,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { private static final String BINARY_NAME = "binary"; private static final String LEFT_NODE_NAME = "left"; private static final String RIGHT_NODE_NAME = "right"; - private static final String IO_EXCEPTION_OCCOURED_MESSAGE = "IOException occoured"; + private static final String IO_EXCEPTION_OCCURRED_MESSAGE = "IOException occurred"; private static final String PARAMETERS_NAME = "parameters"; private static final String METHOD_NAME = "method"; private static final String OPERAND_NAME = "operand"; @@ -85,7 +85,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } } @@ -101,7 +101,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } } @@ -127,7 +127,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } } @@ -146,7 +146,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } } @@ -161,7 +161,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE); } } @@ -193,7 +193,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } } @@ -207,7 +207,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } } @@ -221,7 +221,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } } @@ -235,7 +235,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } } @@ -265,7 +265,7 @@ public class ExpressionJsonVisitor implements ExpressionVisitor { writer.flush(); return writer.toString(); } catch (final IOException e) { - throw new ExpressionVisitException(IO_EXCEPTION_OCCOURED_MESSAGE, e); + throw new ExpressionVisitException(IO_EXCEPTION_OCCURRED_MESSAGE, e); } }