Skip to content

Commit 0de16bb

Browse files
authored
Merge pull request #472 from jsoref/spelling
Spelling
2 parents c84c1c1 + 5b1e142 commit 0de16bb

File tree

10 files changed

+20
-20
lines changed

10 files changed

+20
-20
lines changed

driver/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@
137137
<packageName>org/neo4j/driver</packageName>
138138
</manifest>
139139
<manifestEntries>
140-
<!-- This is used to programatically determine the driver version -->
140+
<!-- This is used to programmatically determine the driver version -->
141141
<Implementation-Version>${project.version}-${build.revision}</Implementation-Version>
142142
<!-- Stable module name for JDK9 automatic modules -->
143143
<Automatic-Module-Name>${moduleName}</Automatic-Module-Name>

driver/src/main/java/org/neo4j/driver/internal/cluster/loadbalancing/LeastConnectedLoadBalancingStrategy.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ private BoltServerAddress select( BoltServerAddress[] addresses, RoundRobinArray
6666
return null;
6767
}
6868

69-
// choose start index for iteration in round-rodin fashion
69+
// choose start index for iteration in round-robin fashion
7070
int startIndex = addressesIndex.next( size );
7171
int index = startIndex;
7272

driver/src/main/java/org/neo4j/driver/internal/messaging/PackStreamMessageFormatV1.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,7 @@ private void ensureCorrectStructSignature( String structName, byte expected, byt
634634
if ( expected != actual )
635635
{
636636
throw new ClientException( String.format(
637-
"Invalid message received, expected a `%s`, signature 0x%s. Recieved signature was 0x%s.",
637+
"Invalid message received, expected a `%s`, signature 0x%s. Received signature was 0x%s.",
638638
structName, Integer.toHexString( expected ), Integer.toHexString( actual ) ) );
639639
}
640640
}

driver/src/main/java/org/neo4j/driver/v1/AuthTokens.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public static AuthToken custom( String principal, String credentials, String rea
113113
* @param principal this used to identify who this token represents
114114
* @param credentials this is credentials authenticating the principal
115115
* @param realm this is the "realm:, specifying the authentication provider.
116-
* @param scheme this it the authentication scheme, specifying what kind of authentication that shoud be used
116+
* @param scheme this it the authentication scheme, specifying what kind of authentication that should be used
117117
* @param parameters extra parameters to be sent along the authentication provider.
118118
* @return an authentication token that can be used to connect to Neo4j
119119
* @see GraphDatabase#driver(String, AuthToken)

driver/src/test/java/org/neo4j/driver/internal/InternalMapAccessorWithDefaultValueTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ public void shouldGetListOfObjectsFromRecord() throws Throwable
181181
{
182182
Record record = createRecord();
183183

184-
List<Object> defalutValue = new ArrayList<>();
184+
List<Object> defaultValue = new ArrayList<>();
185185
// List of java objects, therefore IntegerValue will be converted to Long
186-
assertThat( record.get( "ListValue", defalutValue ), equalTo( asList( (Object) 1L, 2L ) ) );
187-
assertThat( record.get( wrongKey, defalutValue ), equalTo( defalutValue ) );
186+
assertThat( record.get( "ListValue", defaultValue ), equalTo( asList( (Object) 1L, 2L ) ) );
187+
assertThat( record.get( wrongKey, defaultValue ), equalTo( defaultValue ) );
188188
}
189189

190190
@Test

driver/src/test/java/org/neo4j/driver/internal/async/ChannelErrorHandlerTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,16 +91,16 @@ public void shouldHandleChannelInactiveAfterExceptionCaught()
9191
@Test
9292
public void shouldHandleChannelInactiveWhenTerminationReasonSet()
9393
{
94-
String terminationReson = "Something really bad happened";
95-
setTerminationReason( channel, terminationReson );
94+
String terminationReason = "Something really bad happened";
95+
setTerminationReason( channel, terminationReason );
9696

9797
channel.pipeline().fireChannelInactive();
9898

9999
Throwable error = messageDispatcher.currentError();
100100

101101
assertThat( error, instanceOf( ServiceUnavailableException.class ) );
102102
assertThat( error.getMessage(), startsWith( "Connection to the database terminated" ) );
103-
assertThat( error.getMessage(), containsString( terminationReson ) );
103+
assertThat( error.getMessage(), containsString( terminationReason ) );
104104
assertFalse( channel.isOpen() );
105105
}
106106

driver/src/test/java/org/neo4j/driver/internal/cluster/RediscoveryTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ public void shouldRetryConfiguredNumberOfTimesWithDelay()
335335
}
336336

337337
@Test
338-
public void shouldNotLogWhenSingleRetryAttemtFails()
338+
public void shouldNotLogWhenSingleRetryAttemptFails()
339339
{
340340
int maxRoutingFailures = 1;
341341
long retryTimeoutDelay = 10;

driver/src/test/java/org/neo4j/driver/v1/tck/DriverEqualitySteps.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class DriverEqualitySteps
4040
HashMap<String,Value> savedValues = new HashMap<>();
4141

4242
@And( "^`(.*)` is single value result of: (.*)$" )
43-
public void valueIsSingleValueResultOfMATCHNLabelRETURNN( String key, String statement ) throws Throwable
43+
public void valueIsSingleValueResultOfMATCHNLabelRETURN( String key, String statement ) throws Throwable
4444
{
4545
try ( Session session = driver.session())
4646
{

driver/src/test/java/org/neo4j/driver/v1/tck/DriverResultApiSteps.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public class DriverResultApiSteps
5858
List<Statement> statements;
5959

6060
@When( "^the `Statement Result` is consumed a `Result Summary` is returned$" )
61-
public void the_result_is_summerized() throws Throwable
61+
public void the_result_is_summarized() throws Throwable
6262
{
6363
summaries = new ArrayList<>();
6464
for ( CypherStatementRunner runner : runners )
@@ -173,7 +173,7 @@ public void theSummaryHasAProfile() throws Throwable
173173
}
174174

175175
@And( "^the `Result Summary` does not have a `Profile`$" )
176-
public void theSummaryDoesNotHaveAPriofile() throws Throwable
176+
public void theSummaryDoesNotHaveAProfile() throws Throwable
177177
{
178178
for ( ResultSummary summary : summaries )
179179
{
@@ -376,7 +376,7 @@ private void checkPlanMethods( HashMap<String,String> expected, Plan plan )
376376
}
377377
break;
378378
default:
379-
throw new IllegalArgumentException( "There is no case for handeling method type: " + key );
379+
throw new IllegalArgumentException( "There is no case for handling method type: " + key );
380380
}
381381
}
382382
}

driver/src/test/java/org/neo4j/driver/v1/tck/DriverStatementResultAPISteps.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ private void compareSingleRecord( Record record, List<String> keys, List<String>
5454
}
5555

5656
@Then( "^using `Single` on `Statement Result` gives a `Record` containing:$" )
57-
public void usingSingleOnStatementReslutGivesARecordContaining( DataTable table ) throws Throwable
57+
public void usingSingleOnStatementResultGivesARecordContaining( DataTable table ) throws Throwable
5858
{
5959
List<String> keys = table.diffableRows().get( 0 ).convertedRow;
6060
List<String> values = table.diffableRows().get( 1 ).convertedRow;
@@ -66,7 +66,7 @@ public void usingSingleOnStatementReslutGivesARecordContaining( DataTable table
6666
}
6767

6868
@Then( "^using `Single` on `Statement Result` throws exception:$" )
69-
public void usingSingleOnStatmentReslutThrowsException( DataTable table ) throws Throwable
69+
public void usingSingleOnStatementResultThrowsException( DataTable table ) throws Throwable
7070
{
7171
for ( CypherStatementRunner runner : runners )
7272
{
@@ -83,13 +83,13 @@ public void usingSingleOnStatmentReslutThrowsException( DataTable table ) throws
8383
}
8484
if ( success )
8585
{
86-
throw new Exception( "Excpected exception to be thrown but was not! Got: " + single );
86+
throw new Exception( "Expected exception to be thrown but was not! Got: " + single );
8787
}
8888
}
8989
}
9090

9191
@Then( "^using `Peek` on `Statement Result` fails$" )
92-
public void usingPeekOnStatmentReslutGivesNull() throws Throwable
92+
public void usingPeekOnStatementResultGivesNull() throws Throwable
9393
{
9494
for ( CypherStatementRunner runner : runners )
9595
{
@@ -105,7 +105,7 @@ public void usingPeekOnStatmentReslutGivesNull() throws Throwable
105105
}
106106

107107
@Then( "^using `Peek` on `Statement Result` gives a `Record` containing:$" )
108-
public void usingPeekOnStatmentReslutGivesARecord( DataTable table ) throws Throwable
108+
public void usingPeekOnStatementResultGivesARecord( DataTable table ) throws Throwable
109109
{
110110
List<String> keys = table.diffableRows().get( 0 ).convertedRow;
111111
List<String> values = table.diffableRows().get( 1 ).convertedRow;

0 commit comments

Comments
 (0)