Skip to content

Commit

Permalink
Remove cast and add missing license header
Browse files Browse the repository at this point in the history
  • Loading branch information
MishaDemianenko committed Mar 29, 2018
1 parent c2254d0 commit 52245c8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
/*
* Copyright (c) 2002-2018 "Neo Technology,"
* Network Engine for Objects in Lund AB [http://neotechnology.com]
*
* This file is part of Neo4j.
*
* Neo4j is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package org.neo4j.server.rest.transactional.integration;

import org.junit.After;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.neo4j.driver.v1.Record;
import org.neo4j.driver.v1.Session;
import org.neo4j.driver.v1.StatementResult;
import org.neo4j.driver.v1.TransactionWork;
import org.neo4j.driver.v1.Value;
import org.neo4j.driver.v1.util.Pair;
import org.neo4j.graphdb.GraphDatabaseService;
Expand Down Expand Up @@ -106,7 +105,7 @@ private void verifyQueryExecution()
{
try ( Session session = driver.session() )
{
session.readTransaction( (TransactionWork<Void>) tx ->
session.readTransaction( tx ->
{
StatementResult statementResult = tx.run( "MATCH (n) RETURN n.name, n.profession, n.planet, n.city ORDER BY n.name" );
List<String> fields = Arrays.asList( "n.name", "n.profession", "n.planet", "n.city" );
Expand Down

0 comments on commit 52245c8

Please sign in to comment.