gjrwebber / spring-data-gremlin

Spring data gremlin makes it easier to implement Graph based repositories. This module extends Spring Data to allow support for potentially any Graph database that implements the Tinkerpop Blueprints 2.x API.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GremlinQueryCreator.java::toCondition() should not change member field 'schema'

kerler opened this issue · comments

org.springframework.data.gremlin.query.GremlinQueryCreator.java::toCondition() changes member field 'schema', as make that sometimes GremlinQueryCreator.java::complete() uses member field 'schema' whose value is different against what is set in constructor.

Suggest to define all the member field of GremlinQueryCreator.java to be final, and in toCondition() use a local variable such like 'GremlinSchema tmpSchema = this.schema;'.