mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Avoid retrieving values from Record beyond session boundary
See gh-27294
This commit is contained in:
parent
c00e885ac4
commit
e1049a55ff
@ -26,21 +26,24 @@ import org.neo4j.driver.summary.ResultSummary;
|
||||
*/
|
||||
class Neo4jHealthDetails {
|
||||
|
||||
private final Record record;
|
||||
private final String version;
|
||||
|
||||
private final String edition;
|
||||
|
||||
private final ResultSummary summary;
|
||||
|
||||
Neo4jHealthDetails(Record record, ResultSummary summary) {
|
||||
this.record = record;
|
||||
this.version = record.get("version").asString();
|
||||
this.edition = record.get("edition").asString();
|
||||
this.summary = summary;
|
||||
}
|
||||
|
||||
String getVersion() {
|
||||
return this.record.get("version").asString();
|
||||
return this.version;
|
||||
}
|
||||
|
||||
String getEdition() {
|
||||
return this.record.get("edition").asString();
|
||||
return this.edition;
|
||||
}
|
||||
|
||||
ResultSummary getSummary() {
|
||||
|
Loading…
Reference in New Issue
Block a user