This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 6055932 remove redundant modifiers (#7510)
6055932 is described below
commit 6055932bed629897a91ad71603db868a30b92c6d
Author: 灼华 <[email protected]>
AuthorDate: Wed Apr 7 19:20:17 2021 +0800
remove redundant modifiers (#7510)
---
.../src/main/java/org/apache/dubbo/common/utils/MethodUtils.java | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git
a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/MethodUtils.java
b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/MethodUtils.java
index 1938eba..e381926 100644
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/MethodUtils.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/MethodUtils.java
@@ -51,7 +51,7 @@ public interface MethodUtils {
* @param method the method to check
* @return whether the given method is setter method
*/
- public static boolean isSetter(Method method) {
+ static boolean isSetter(Method method) {
return method.getName().startsWith("set")
&& !"set".equals(method.getName())
&& Modifier.isPublic(method.getModifiers())
@@ -66,7 +66,7 @@ public interface MethodUtils {
* @param method the method to check
* @return whether the given method is getter method
*/
- public static boolean isGetter(Method method) {
+ static boolean isGetter(Method method) {
String name = method.getName();
return (name.startsWith("get") || name.startsWith("is"))
&& !"get".equals(name) && !"is".equals(name)
@@ -83,7 +83,7 @@ public interface MethodUtils {
* @param method the method to check
* @return whether the given method is meta method
*/
- public static boolean isMetaMethod(Method method) {
+ static boolean isMetaMethod(Method method) {
String name = method.getName();
if (!(name.startsWith("get") || name.startsWith("is"))) {
return false;
@@ -114,7 +114,7 @@ public interface MethodUtils {
* @param method the method to check
* @return whether the given method is deprecated method
*/
- public static boolean isDeprecated(Method method) {
+ static boolean isDeprecated(Method method) {
return method.getAnnotation(Deprecated.class) != null;
}