Skip to content

Commit 43063c3

Browse files
committed
Add missing deprecation-for-removal markers.
Closes #1595
1 parent c395ec2 commit 43063c3

File tree

53 files changed

+98
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+98
-97
lines changed

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/CassandraReadTimeoutException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public CassandraReadTimeoutException(boolean wasDataPresent, String msg, Throwab
4747
* @return whether the actual data was amongst the received replica responses.
4848
* @deprecated since 3.0, use {@link #wasDataPresent()}.
4949
*/
50-
@Deprecated
50+
@Deprecated(forRemoval = true)
5151
public boolean getWasDataReceived() {
5252
return wasDataPresent();
5353
}

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/CassandraSchemaElementExistsException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class CassandraSchemaElementExistsException extends NonTransientDataAcces
3030

3131
@Serial private static final long serialVersionUID = 7798361273692300162L;
3232

33-
@Deprecated
33+
@Deprecated(forRemoval = true)
3434
public enum ElementType {
3535
KEYSPACE, TABLE, COLUMN, INDEX
3636
}
@@ -46,7 +46,7 @@ public enum ElementType {
4646
* @param msg the detail message.
4747
* @param cause the root cause from the underlying data access API.
4848
*/
49-
@Deprecated
49+
@Deprecated(forRemoval = true)
5050
public CassandraSchemaElementExistsException(String elementName, ElementType elementType, String msg,
5151
Throwable cause) {
5252
super(msg, cause);
@@ -64,13 +64,13 @@ public CassandraSchemaElementExistsException(String msg, Throwable cause) {
6464
super(msg, cause);
6565
}
6666

67-
@Deprecated
67+
@Deprecated(forRemoval = true)
6868
@Nullable
6969
public String getElementName() {
7070
return elementName;
7171
}
7272

73-
@Deprecated
73+
@Deprecated(forRemoval = true)
7474
@Nullable
7575
public ElementType getElementType() {
7676
return elementType;

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/config/AbstractCqlTemplateConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* @see CqlTemplate
2929
* @deprecated since 3.0, use {@link AbstractSessionConfiguration}.
3030
*/
31-
@Deprecated
31+
@Deprecated(forRemoval = true)
3232
public abstract class AbstractCqlTemplateConfiguration extends AbstractSessionConfiguration {
3333

3434
}

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/config/AbstractSessionConfiguration.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ protected <T> T requireBeanOfType(@NonNull Class<T> beanType) {
111111
* @since 1.5
112112
*/
113113
@Nullable
114-
@Deprecated
114+
@Deprecated(forRemoval = true)
115115
protected String getClusterName() {
116116
return null;
117117
}
@@ -265,7 +265,7 @@ protected Resource getDriverConfigurationResource() {
265265
* {@link org.springframework.data.cassandra.core.cql.session.init.SessionFactoryInitializer} bean
266266
* instead.
267267
*/
268-
@Deprecated
268+
@Deprecated(forRemoval = true)
269269
protected List<String> getStartupScripts() {
270270
return Collections.emptyList();
271271
}
@@ -279,7 +279,7 @@ protected List<String> getStartupScripts() {
279279
* @deprecated since 3.0; Declare a
280280
* {@link org.springframework.data.cassandra.core.cql.session.init.SessionFactoryInitializer} bean instead.
281281
*/
282-
@Deprecated
282+
@Deprecated(forRemoval = true)
283283
protected List<String> getShutdownScripts() {
284284
return Collections.emptyList();
285285
}

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/config/CassandraCqlSessionFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
* @see CassandraExceptionTranslator
3434
* @deprecated since 3.0, use {@link CqlSessionFactoryBean} directly.
3535
*/
36-
@Deprecated
36+
@Deprecated(forRemoval = true)
3737
public class CassandraCqlSessionFactoryBean extends CqlSessionFactoryBean {
3838

3939
}

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/config/CassandraSessionFactoryBean.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
* @author Mark Paluch
2626
* @deprecated since 3.0, use {@link CqlSessionFactoryBean} directly.
2727
*/
28-
@Deprecated
28+
@Deprecated(forRemoval = true)
2929
public class CassandraSessionFactoryBean extends CqlSessionFactoryBean {
3030

3131
}

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/config/KeyspaceActionSpecificationFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public static KeyspaceActionSpecificationFactoryBuilder builder(String keyspaceN
8181
* @return the new {@link KeyspaceActionSpecificationFactoryBuilder} for {@code keyspaceName}.
8282
* @deprecated since 3.0, use {@link #builder(CqlIdentifier)}.
8383
*/
84-
@Deprecated
84+
@Deprecated(forRemoval = true)
8585
public static KeyspaceActionSpecificationFactoryBuilder builder(KeyspaceIdentifier keyspaceName) {
8686
return builder(keyspaceName.toCqlIdentifier());
8787
}

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/AsyncCassandraTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ protected EntityOperations getEntityOperations() {
290290
* @since 2.1
291291
* @deprecated since 3.4, use {@link CassandraConverter#getProjectionFactory()} instead.
292292
*/
293-
@Deprecated
293+
@Deprecated(forRemoval = true)
294294
protected SpelAwareProxyProjectionFactory getProjectionFactory() {
295295
return (SpelAwareProxyProjectionFactory) getConverter().getProjectionFactory();
296296
}

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/DeleteOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public DeleteOptionsBuilder executionProfile(ExecutionProfileResolver executionP
175175
}
176176

177177
@Override
178-
@Deprecated
178+
@Deprecated(forRemoval = true)
179179
public DeleteOptionsBuilder fetchSize(int fetchSize) {
180180

181181
super.fetchSize(fetchSize);
@@ -204,15 +204,15 @@ public DeleteOptionsBuilder pageSize(int pageSize) {
204204
}
205205

206206
@Override
207-
@Deprecated
207+
@Deprecated(forRemoval = true)
208208
public DeleteOptionsBuilder readTimeout(long readTimeout) {
209209

210210
super.readTimeout(readTimeout);
211211
return this;
212212
}
213213

214214
@Override
215-
@Deprecated
215+
@Deprecated(forRemoval = true)
216216
public DeleteOptionsBuilder readTimeout(long readTimeout, TimeUnit timeUnit) {
217217

218218
super.readTimeout(readTimeout, timeUnit);

spring-data-cassandra/src/main/java/org/springframework/data/cassandra/core/InsertOptions.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public InsertOptionsBuilder executionProfile(ExecutionProfileResolver executionP
178178
}
179179

180180
@Override
181-
@Deprecated
181+
@Deprecated(forRemoval = true)
182182
public InsertOptionsBuilder fetchSize(int fetchSize) {
183183
return (InsertOptionsBuilder) super.fetchSize(fetchSize);
184184
}
@@ -203,15 +203,15 @@ public InsertOptionsBuilder pageSize(int pageSize) {
203203
}
204204

205205
@Override
206-
@Deprecated
206+
@Deprecated(forRemoval = true)
207207
public InsertOptionsBuilder readTimeout(long readTimeout) {
208208

209209
super.readTimeout(readTimeout);
210210
return this;
211211
}
212212

213213
@Override
214-
@Deprecated
214+
@Deprecated(forRemoval = true)
215215
public InsertOptionsBuilder readTimeout(long readTimeout, TimeUnit timeUnit) {
216216

217217
super.readTimeout(readTimeout, timeUnit);

0 commit comments

Comments
 (0)