From 317ae48ac48c9f74d50baacd03e58d54db11efeb Mon Sep 17 00:00:00 2001 From: Lucia Pasarin Date: Sat, 17 Oct 2015 00:23:27 +0200 Subject: [PATCH] Add missing test annotation + remove unnecessary assignment --- .../test/java/org/apache/phoenix/parse/QueryParserTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/phoenix-core/src/test/java/org/apache/phoenix/parse/QueryParserTest.java b/phoenix-core/src/test/java/org/apache/phoenix/parse/QueryParserTest.java index 63c9e420408..14eb69acff4 100644 --- a/phoenix-core/src/test/java/org/apache/phoenix/parse/QueryParserTest.java +++ b/phoenix-core/src/test/java/org/apache/phoenix/parse/QueryParserTest.java @@ -38,8 +38,7 @@ public class QueryParserTest { private void parseQuery(String sql) throws IOException, SQLException { SQLParser parser = new SQLParser(new StringReader(sql)); - BindableStatement stmt = null; - stmt = parser.parseStatement(); + BindableStatement stmt = parser.parseStatement(); if (stmt.getOperation() != Operation.QUERY) { return; } @@ -462,7 +461,8 @@ public void testNextValueForWhere() throws Exception { "select next value for foo.bar from core.custom_entity_data\n")); parseQuery(sql); } - + + @Test public void testBadCharDef() throws Exception { try { String sql = ("CREATE TABLE IF NOT EXISTS testBadVarcharDef" +