Skip to content

Commit

Permalink
Prepare for removal of ListenableFuture.
Browse files Browse the repository at this point in the history
Suppress warnings for using deprecated-for-removal code.

Closes #1530
  • Loading branch information
mp911de committed Oct 30, 2024
1 parent 2f07b82 commit f6a66ba
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 127 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
* {@link org.springframework.data.cassandra.core.cql.AsyncCqlOperations}.
*/
@Deprecated(since = "4.0", forRemoval = true)
@SuppressWarnings("removal")
public interface AsyncCqlOperations {

// -------------------------------------------------------------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
* {@link org.springframework.data.cassandra.core.cql.AsyncCqlTemplate}.
*/
@Deprecated(since = "4.0", forRemoval = true)
@SuppressWarnings("removal")
public class AsyncCqlTemplate extends CassandraAccessor implements AsyncCqlOperations {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
*/
@Deprecated(since = "4.0", forRemoval = true)
@FunctionalInterface
@SuppressWarnings("removal")
public interface AsyncPreparedStatementCreator {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
*/
@Deprecated(since = "4.0", forRemoval = true)
@FunctionalInterface
@SuppressWarnings("removal")
public interface AsyncResultSetExtractor<T> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
* @since 4.0
*/
@Deprecated(since = "4.0", forRemoval = true)
@SuppressWarnings("removal")
class AsyncResultStream<T> {

private final AsyncResultSet resultSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@
* @deprecated since 4.0, use the {@link java.util.concurrent.CompletableFuture}-based variant.
*/
@Deprecated(since = "4.0", forRemoval = true)
@SuppressWarnings("removal")
public class AsyncRowMapperResultSetExtractor<T> implements AsyncResultSetExtractor<List<T>> {

private final RowMapper<T> rowMapper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
*/
@Deprecated(since = "4.0", forRemoval = true)
@FunctionalInterface
@SuppressWarnings("removal")
public interface AsyncSessionCallback<T> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
* @since 4.0
*/
@Deprecated(since = "4.0", forRemoval = true)
@SuppressWarnings("removal")
class ExceptionTranslatingListenableFutureAdapter<T> implements ListenableFuture<T> {

private final ListenableFuture<T> adaptee;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
* {@link org.springframework.data.cassandra.core.AsyncCassandraTemplate}.
*/
@Deprecated(since = "4.0", forRemoval = true)
@SuppressWarnings("removal")
public interface AsyncCassandraOperations {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
* {@link org.springframework.data.cassandra.core.AsyncCassandraTemplate}.
*/
@Deprecated(since = "4.0", forRemoval = true)
@SuppressWarnings("removal")
public class AsyncCassandraTemplate
implements AsyncCassandraOperations, ApplicationEventPublisherAware, ApplicationContextAware {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
* @since 4.0
*/
@Deprecated(since = "4.0", forRemoval = true)
@SuppressWarnings("removal")
class EntityOperations {

private final MappingContext<? extends CassandraPersistentEntity<?>, CassandraPersistentProperty> mappingContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
*
* @author Mark Paluch
*/
@SuppressWarnings("removal")
class AsyncCqlTemplateIntegrationTests extends AbstractKeyspaceCreatingIntegrationTests {

private static final AtomicBoolean initialized = new AtomicBoolean();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@
*/
@ExtendWith(MockitoExtension.class)
@MockitoSettings(strictness = Strictness.LENIENT)
@SuppressWarnings("removal")
class AsyncCqlTemplateUnitTests {

@Mock CqlSession session;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
*
* @author Mark Paluch
*/
@SuppressWarnings("removal")
class AsyncResultStreamUnitTests {

private AsyncResultSet first = mock(AsyncResultSet.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
*
* @author Mark Paluch
*/
@SuppressWarnings("removal")
class AsyncCassandraTemplateIntegrationTests extends AbstractKeyspaceCreatingIntegrationTests {

private AsyncCassandraTemplate template;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
*/
@ExtendWith(MockitoExtension.class)
@MockitoSettings(strictness = Strictness.LENIENT)
@SuppressWarnings("removal")
class AsyncCassandraTemplateUnitTests {

@Mock CqlSession session;
Expand Down

0 comments on commit f6a66ba

Please sign in to comment.