Skip to content

Commit 4f34e36

Browse files
Fix some typos in the project
* Remove unused imports Signed-off-by: Tran Ngoc Nhan <ngocnhan.tran1996@gmail.com>
1 parent 8918c36 commit 4f34e36

File tree

6 files changed

+10
-14
lines changed

6 files changed

+10
-14
lines changed

src/main/java/org/springframework/classify/PatternMatcher.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,8 +16,6 @@
1616
package org.springframework.classify;
1717

1818
import java.util.ArrayList;
19-
import java.util.Collections;
20-
import java.util.Comparator;
2119
import java.util.HashMap;
2220
import java.util.List;
2321
import java.util.Map;

src/main/java/org/springframework/classify/util/MethodInvokerUtils.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -54,7 +54,7 @@ public static MethodInvoker getMethodInvokerByName(Object object, String methodN
5454
Method method = ClassUtils.getMethodIfAvailable(object.getClass(), methodName, paramTypes);
5555
if (method == null) {
5656
String errorMsg = "no method found with name [" + methodName + "] on class ["
57-
+ object.getClass().getSimpleName() + "] compatable with the signature ["
57+
+ object.getClass().getSimpleName() + "] compatible with the signature ["
5858
+ getParamTypesString(paramTypes) + "].";
5959
Assert.isTrue(!paramsRequired, errorMsg);
6060
// if no method was found for the given parameters, and the
@@ -121,7 +121,7 @@ public static MethodInvoker getMethodInvokerByAnnotation(final Class<? extends A
121121
Class<?>[] paramTypes = method.getParameterTypes();
122122
if (paramTypes.length > 0) {
123123
String errorMsg = "The method [" + method.getName() + "] on target class ["
124-
+ targetClass.getSimpleName() + "] is incompatable with the signature ["
124+
+ targetClass.getSimpleName() + "] is compatible with the signature ["
125125
+ getParamTypesString(expectedParamTypes) + "] expected for the annotation ["
126126
+ annotationType.getSimpleName() + "].";
127127

src/main/java/org/springframework/retry/backoff/BackOffInterruptedException.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2007 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@
1919
import org.springframework.retry.RetryException;
2020

2121
/**
22-
* Exception class signifiying that an attempt to back off using a {@link BackOffPolicy}
22+
* Exception class signifying that an attempt to back off using a {@link BackOffPolicy}
2323
* was interrupted, most likely by an {@link InterruptedException} during a call to
2424
* {@link Thread#sleep(long)}.
2525
*

src/main/java/org/springframework/retry/interceptor/StatefulRetryOperationsInterceptor.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,7 +25,6 @@
2525

2626
import org.springframework.classify.Classifier;
2727
import org.springframework.retry.RecoveryCallback;
28-
import org.springframework.retry.RetryCallback;
2928
import org.springframework.retry.RetryContext;
3029
import org.springframework.retry.RetryOperations;
3130
import org.springframework.retry.RetryState;

src/main/java/org/springframework/retry/support/Args.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2022 the original author or authors.
2+
* Copyright 2022-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@
2424
* {@code maxAttempts = 0}.
2525
*
2626
* @author Gary Russell
27-
* @Since 2.0
27+
* @since 2.0
2828
*/
2929
public class Args {
3030

src/test/java/org/springframework/retry/backoff/DummySleeper.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2006-2022 the original author or authors.
2+
* Copyright 2006-2025 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,7 +16,6 @@
1616
package org.springframework.retry.backoff;
1717

1818
import java.util.ArrayList;
19-
import java.util.Iterator;
2019
import java.util.List;
2120

2221
/**

0 commit comments

Comments
 (0)