Skip to content

Commit 857bde1

Browse files
committed
DATACASS-814 - Polishing.
Fix typo in docs. Convert space indents to tabs. Original pull request: #180.
1 parent 3b05815 commit 857bde1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/cql/support/MapPreparedStatementCache.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected Map<CacheKey, PreparedStatement> getCache() {
7979
}
8080

8181
/* (non-Javadoc)
82-
* @see org.springframework.data.cassandra.core.cql.support.PrepatedStatementCache#getPreparedStatement(com.datastax.oss.driver.api.core.CqlSession, com.datastax.oss.driver.api.core.cql.SimpleStatement, java.util.function.Supplier)
82+
* @see org.springframework.data.cassandra.core.cql.support.PreparedStatementCache#getPreparedStatement(com.datastax.oss.driver.api.core.CqlSession, com.datastax.oss.driver.api.core.cql.SimpleStatement, java.util.function.Supplier)
8383
*/
8484
@Override
8585
public PreparedStatement getPreparedStatement(CqlSession session, SimpleStatement statement,

spring-data-cassandra/src/test/java/org/springframework/data/cassandra/core/cql/support/CachedPreparedStatementCreatorUnitTests.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -184,16 +184,16 @@ void shouldCacheAdoptDifferencesInCachedPreparedStatements() {
184184
verify(session).prepare(secondStatement);
185185
}
186186

187-
@Test // DATACASS-814
188-
void shouldUseCqlTextInCacheKey() {
187+
@Test // DATACASS-814
188+
void shouldUseCqlTextInCacheKey() {
189189

190-
String cql = "SELECT foo FROM users;";
190+
String cql = "SELECT foo FROM users;";
191191

192-
MapPreparedStatementCache cache = MapPreparedStatementCache.create();
193-
CachedPreparedStatementCreator creator = CachedPreparedStatementCreator.of(cache, cql);
194-
creator.createPreparedStatement(session);
192+
MapPreparedStatementCache cache = MapPreparedStatementCache.create();
193+
CachedPreparedStatementCreator creator = CachedPreparedStatementCreator.of(cache, cql);
194+
creator.createPreparedStatement(session);
195195

196-
MapPreparedStatementCache.CacheKey cacheKey = cache.getCache().keySet().iterator().next();
197-
assertThat(cacheKey.cql).isSameAs(cql);
198-
}
196+
MapPreparedStatementCache.CacheKey cacheKey = cache.getCache().keySet().iterator().next();
197+
assertThat(cacheKey.cql).isEqualTo(cql);
198+
}
199199
}

0 commit comments

Comments
 (0)