Skip to content

Commit 191d092

Browse files
committed
Polishing
1 parent 196b7ec commit 191d092

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

spring-context/src/test/java/org/springframework/resilience/ConcurrencyLimitTests.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @author Juergen Hoeller
3838
* @since 7.0
3939
*/
40-
public class ConcurrencyLimitTests {
40+
class ConcurrencyLimitTests {
4141

4242
@Test
4343
void withSimpleInterceptor() {
@@ -98,7 +98,7 @@ void withPostProcessorForClass() {
9898
}
9999

100100

101-
public static class NonAnnotatedBean {
101+
static class NonAnnotatedBean {
102102

103103
AtomicInteger counter = new AtomicInteger();
104104

@@ -117,7 +117,7 @@ public void concurrentOperation() {
117117
}
118118

119119

120-
public static class AnnotatedMethodBean {
120+
static class AnnotatedMethodBean {
121121

122122
AtomicInteger current = new AtomicInteger();
123123

@@ -138,7 +138,7 @@ public void concurrentOperation() {
138138

139139

140140
@ConcurrencyLimit(2)
141-
public static class AnnotatedClassBean {
141+
static class AnnotatedClassBean {
142142

143143
AtomicInteger current = new AtomicInteger();
144144

spring-context/src/test/java/org/springframework/resilience/ReactiveRetryInterceptorTests.java

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
* @author Juergen Hoeller
4545
* @since 7.0
4646
*/
47-
public class ReactiveRetryInterceptorTests {
47+
class ReactiveRetryInterceptorTests {
4848

4949
@Test
5050
void withSimpleInterceptor() {
@@ -189,7 +189,7 @@ void adaptReactiveResultWithImmediateFailure() {
189189
}
190190

191191

192-
public static class NonAnnotatedBean {
192+
static class NonAnnotatedBean {
193193

194194
AtomicInteger counter = new AtomicInteger();
195195

@@ -202,7 +202,7 @@ public Mono<Object> retryOperation() {
202202
}
203203

204204

205-
public static class AnnotatedMethodBean {
205+
static class AnnotatedMethodBean {
206206

207207
AtomicInteger counter = new AtomicInteger();
208208

@@ -219,7 +219,7 @@ public Mono<Object> retryOperation() {
219219
@Retryable(delay = 10, jitter = 5, multiplier = 2.0, maxDelay = 40,
220220
includes = IOException.class, excludes = AccessDeniedException.class,
221221
predicate = CustomPredicate.class)
222-
public static class AnnotatedClassBean {
222+
static class AnnotatedClassBean {
223223

224224
AtomicInteger counter = new AtomicInteger();
225225

@@ -258,7 +258,7 @@ public boolean shouldRetry(Method method, Throwable throwable) {
258258

259259
// Bean classes for boundary testing
260260

261-
public static class MinimalRetryBean {
261+
static class MinimalRetryBean {
262262

263263
AtomicInteger counter = new AtomicInteger();
264264

@@ -271,7 +271,7 @@ public Mono<Object> retryOperation() {
271271
}
272272

273273

274-
public static class ZeroDelayJitterBean {
274+
static class ZeroDelayJitterBean {
275275

276276
AtomicInteger counter = new AtomicInteger();
277277

@@ -284,7 +284,7 @@ public Mono<Object> retryOperation() {
284284
}
285285

286286

287-
public static class JitterGreaterThanDelayBean {
287+
static class JitterGreaterThanDelayBean {
288288

289289
AtomicInteger counter = new AtomicInteger();
290290

@@ -297,7 +297,7 @@ public Mono<Object> retryOperation() {
297297
}
298298

299299

300-
public static class FluxMultiValueBean {
300+
static class FluxMultiValueBean {
301301

302302
AtomicInteger counter = new AtomicInteger();
303303

@@ -310,7 +310,7 @@ public Flux<Object> retryOperation() {
310310
}
311311

312312

313-
public static class SuccessfulOperationBean {
313+
static class SuccessfulOperationBean {
314314

315315
AtomicInteger counter = new AtomicInteger();
316316

@@ -323,7 +323,7 @@ public Mono<String> retryOperation() {
323323
}
324324

325325

326-
public static class ImmediateFailureBean {
326+
static class ImmediateFailureBean {
327327

328328
AtomicInteger counter = new AtomicInteger();
329329

spring-context/src/test/java/org/springframework/resilience/RetryInterceptorTests.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
* @author Juergen Hoeller
4848
* @since 7.0
4949
*/
50-
public class RetryInterceptorTests {
50+
class RetryInterceptorTests {
5151

5252
@Test
5353
void withSimpleInterceptor() {
@@ -137,7 +137,7 @@ void withEnableAnnotation() throws Exception {
137137
}
138138

139139

140-
public static class NonAnnotatedBean {
140+
static class NonAnnotatedBean {
141141

142142
int counter = 0;
143143

@@ -148,7 +148,7 @@ public void retryOperation() throws IOException {
148148
}
149149

150150

151-
public static class AnnotatedMethodBean {
151+
static class AnnotatedMethodBean {
152152

153153
int counter = 0;
154154

@@ -163,7 +163,7 @@ public void retryOperation() throws IOException {
163163
@Retryable(delay = 10, jitter = 5, multiplier = 2.0, maxDelay = 40,
164164
includes = IOException.class, excludes = AccessDeniedException.class,
165165
predicate = CustomPredicate.class)
166-
public static class AnnotatedClassBean {
166+
static class AnnotatedClassBean {
167167

168168
int counter = 0;
169169

@@ -189,7 +189,7 @@ public void overrideOperation() throws IOException {
189189
multiplierString = "${multiplier}", maxDelayString = "${maxDelay}",
190190
includes = IOException.class, excludes = AccessDeniedException.class,
191191
predicate = CustomPredicate.class)
192-
public static class AnnotatedClassBeanWithStrings {
192+
static class AnnotatedClassBeanWithStrings {
193193

194194
int counter = 0;
195195

@@ -220,7 +220,7 @@ public boolean shouldRetry(Method method, Throwable throwable) {
220220
}
221221

222222

223-
public static class DoubleAnnotatedBean {
223+
static class DoubleAnnotatedBean {
224224

225225
AtomicInteger current = new AtomicInteger();
226226

@@ -248,7 +248,7 @@ public void retryOperation() throws IOException, InterruptedException {
248248

249249

250250
@EnableResilientMethods
251-
public static class EnablingConfig {
251+
static class EnablingConfig {
252252
}
253253

254254
}

0 commit comments

Comments
 (0)