diff options
Diffstat (limited to 'aai-resources/src/main/java/org')
3 files changed, 4 insertions, 5 deletions
diff --git a/aai-resources/src/main/java/org/onap/aai/dbgen/ForceDeleteTool.java b/aai-resources/src/main/java/org/onap/aai/dbgen/ForceDeleteTool.java index 3ea950f..56af86f 100644 --- a/aai-resources/src/main/java/org/onap/aai/dbgen/ForceDeleteTool.java +++ b/aai-resources/src/main/java/org/onap/aai/dbgen/ForceDeleteTool.java @@ -339,7 +339,7 @@ public class ForceDeleteTool { public static class ForceDelete { - private final int MAXDESCENDENTDEPTH = 15; + private static final int MAXDESCENDENTDEPTH = 15; private final TitanGraph graph; public ForceDelete(TitanGraph graph) { this.graph = graph; diff --git a/aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java b/aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java index 1267792..e03c7fd 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/BulkConsumer.java @@ -276,7 +276,7 @@ public abstract class BulkConsumer extends RESTAPI { */ private void fillBulkOperationObjectFromTransaction(List<BulkOperation> bulkOperations, JsonObject transaction, Loader loader, TransactionalGraphEngine dbEngine, String inputMediaType) - throws AAIException, JsonSyntaxException, UnsupportedEncodingException { + throws AAIException,UnsupportedEncodingException { if (transaction.has(BULK_PUT_METHOD) && this.functionAllowed(HttpMethod.PUT)) { diff --git a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java index eeaaf6a..8572369 100644 --- a/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java +++ b/aai-resources/src/main/java/org/onap/aai/rest/tools/ModelVersionTransformer.java @@ -350,10 +350,9 @@ public class ModelVersionTransformer extends RESTAPI { } } } catch (NoSuchElementException e) { - // TODO Auto-generated catch block - e.printStackTrace(); + throw new NoSuchElementException(); } catch (Exception e1) { - e1.printStackTrace(); + LOGGER.error("Exception while getting current models from graph"+e1); } return modelVerModelMap; |