You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by li...@apache.org on 2019/09/30 07:14:14 UTC
[dubbo] branch 2.7.4-release updated: Remove the outdated and
misleading comment (#5132)
This is an automated email from the ASF dual-hosted git repository.
liujun pushed a commit to branch 2.7.4-release
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/2.7.4-release by this push:
new a43643d Remove the outdated and misleading comment (#5132)
a43643d is described below
commit a43643d6a58b425304aef177aa6e6a8d8ec28085
Author: Mercy Ma <me...@gmail.com>
AuthorDate: Mon Sep 30 15:14:05 2019 +0800
Remove the outdated and misleading comment (#5132)
---
.../util/AnnotatedBeanDefinitionRegistryUtils.java | 1 -
.../dubbo/config/spring/util/ClassUtils.java | 37 ----------------------
.../config/spring/util/PropertySourcesUtils.java | 1 -
3 files changed, 39 deletions(-)
diff --git a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/AnnotatedBeanDefinitionRegistryUtils.java b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/AnnotatedBeanDefinitionRegistryUtils.java
index 3753b61..25c1f06 100644
--- a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/AnnotatedBeanDefinitionRegistryUtils.java
+++ b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/AnnotatedBeanDefinitionRegistryUtils.java
@@ -37,7 +37,6 @@ import static org.springframework.util.ClassUtils.resolveClassName;
/**
* Annotated {@link BeanDefinition} Utilities
* <p>
- * The source code is cloned from https://github.com/alibaba/spring-context-support/blob/1.0.2/src/main/java/com/alibaba/spring/util/AnnotatedBeanDefinitionRegistryUtils.java
*
* @since 2.6.6
*/
diff --git a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/ClassUtils.java b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/ClassUtils.java
deleted file mode 100644
index 29cd637..0000000
--- a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/ClassUtils.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements. See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.dubbo.config.spring.util;
-
-import java.lang.reflect.ParameterizedType;
-import java.lang.reflect.Type;
-
-/**
- * {@link Class} Utilities
- * <p>
- * The source code is cloned from
- * https://github.com/alibaba/spring-context-support/blob/1.0.2/src/main/java/com/alibaba/spring/util/ClassUtils.java
- *
- * @since 2.6.6
- */
-public abstract class ClassUtils {
-
- public static <T> Class<T> resolveGenericType(Class<?> declaredClass) {
- ParameterizedType parameterizedType = (ParameterizedType) declaredClass.getGenericSuperclass();
- Type[] actualTypeArguments = parameterizedType.getActualTypeArguments();
- return (Class<T>) actualTypeArguments[0];
- }
-}
diff --git a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/PropertySourcesUtils.java b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/PropertySourcesUtils.java
index 119a1f8..d9c3b66 100644
--- a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/PropertySourcesUtils.java
+++ b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/util/PropertySourcesUtils.java
@@ -32,7 +32,6 @@ import java.util.Properties;
/**
* {@link PropertySources} Utilities
* <p>
- * The source code is cloned from https://github.com/alibaba/spring-context-support/blob/1.0.2/src/main/java/com/alibaba/spring/util/PropertySourcesUtils.java
*
* @since 2.6.6
*/