From 6aad1c6198726b0e7963db363ea0cfc28e93fcd5 Mon Sep 17 00:00:00 2001 From: Mamtha Date: Fri, 16 Aug 2019 15:57:22 +0530 Subject: Issue-ID: MUSIC-481. Removed commented out lines of code. Issue-ID: MUSIC-481. Removed commented out code. Code cleanup Change-Id: I1565f2d9312a9d6daa232074fee35577dfe197c2 Signed-off-by: Mamtha --- src/main/java/org/onap/music/datastore/jsonobjects/JsonTable.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/main/java/org/onap/music/datastore/jsonobjects/JsonTable.java') diff --git a/src/main/java/org/onap/music/datastore/jsonobjects/JsonTable.java b/src/main/java/org/onap/music/datastore/jsonobjects/JsonTable.java index 83b5a7a5..ef560144 100644 --- a/src/main/java/org/onap/music/datastore/jsonobjects/JsonTable.java +++ b/src/main/java/org/onap/music/datastore/jsonobjects/JsonTable.java @@ -162,9 +162,7 @@ public class JsonTable { // first read the information about the table fields Map fields = this.getFields(); if (fields == null) { - /*return response.status(Status.BAD_REQUEST).entity(new JsonResponse(ResultType.FAILURE) - .setError("Create Table Error: No fields in request").toMap()).build();*/ - throw new MusicQueryException( + throw new MusicQueryException( "Create Table Error: No fields in request", Status.BAD_REQUEST.getStatusCode()); } StringBuilder fieldsString = new StringBuilder("(vector_ts text,"); @@ -187,9 +185,6 @@ public class JsonTable { int count1 = StringUtils.countMatches(primaryKey, ')'); int count2 = StringUtils.countMatches(primaryKey, '('); if (count1 != count2) { - /*return response.status(Status.BAD_REQUEST).entity(new JsonResponse(ResultType.FAILURE) - .setError("Create Table Error: primary key '(' and ')' do not match, primary key=" + primaryKey) - .toMap()).build();*/ throw new MusicQueryException( "Create Table Error: primary key '(' and ')' do not match, primary key=" + primaryKey, Status.BAD_REQUEST.getStatusCode()); -- cgit 1.2.3-korg