diff options
author | 2020-06-23 14:34:07 -0400 | |
---|---|---|
committer | 2020-07-08 10:54:28 -0400 | |
commit | de4fc52226078ed9276323416c3b5129e6780973 (patch) | |
tree | e2e6605b68e874c480212b263bb9969c16f54f4a /src/main/java/org/onap/aai/rest/search/GenericQueryProcessor.java | |
parent | bfc786f8a9bb550df1c70c9f425fa182246baba2 (diff) |
Fix sonar issues
- Fix Sonar issues in the classes : UpdatePropertyToolInternal, MigratePserverAndPnfEquipType,
UniquePropertyCheck, AuditOXM, PrintVertexDetails, DataGroomingTasks,
DeletePInterface, MigrateDataFromASDCToConfiguration, MigrateSAREvcInventory,
MigrateModelVer, PserverDedupWithDifferentSourcesOfTruth, GenericQueryProcessor,
DataExportTasks
Issue-ID: AAI-2963
Signed-off-by: Rodrigo Lima <rodrigo.lima@yoppworks.com>
Change-Id: I76ff744153805a009d8378b9839f83456d9ebe5c
Diffstat (limited to 'src/main/java/org/onap/aai/rest/search/GenericQueryProcessor.java')
-rw-r--r-- | src/main/java/org/onap/aai/rest/search/GenericQueryProcessor.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/onap/aai/rest/search/GenericQueryProcessor.java b/src/main/java/org/onap/aai/rest/search/GenericQueryProcessor.java index 9bcd843..85573fc 100644 --- a/src/main/java/org/onap/aai/rest/search/GenericQueryProcessor.java +++ b/src/main/java/org/onap/aai/rest/search/GenericQueryProcessor.java @@ -115,10 +115,10 @@ public abstract class GenericQueryProcessor { Map<String, Object> params = new HashMap<>(); String query = ""; if (this.isGremlin) { - query = gremlin.get(); + query = gremlin.isPresent() ? gremlin.get() : ""; }else if (this.isDsl) { - String dslUserQuery = dsl.get(); + String dslUserQuery = dsl.isPresent() ? dsl.get() : ""; if(dslQueryProcessorOptional.isPresent()){ String dslQuery = dslQueryProcessorOptional.get().parseAaiQuery(dslUserQuery); query = groovyQueryBuilder.executeTraversal(dbEngine, dslQuery, params); |