This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/incubator-fury.git
The following commit(s) were added to refs/heads/main by this push: new 108c92f3 fix(java): add guava derive comments (#1581) 108c92f3 is described below commit 108c92f3b981fd65859c4322944f20a510b02e4b Author: Shawn Yang <shawn.ck.y...@gmail.com> AuthorDate: Sat Apr 27 11:31:17 2024 +0800 fix(java): add guava derive comments (#1581) ## What does this PR do? add guava derive comments ## Related issues #1553 ## Does this PR introduce any user-facing change? <!-- If any user-facing interface changes, please [open an issue](https://github.com/apache/incubator-fury/issues/new/choose) describing the need to do so and update the document if necessary. --> - [ ] Does this PR introduce any public API change? - [ ] Does this PR introduce any binary protocol compatibility change? ## Benchmark <!-- When the PR has an impact on performance (if you don't know whether the PR will have an impact on performance, you can submit the PR first, and if it will have impact on performance, the code reviewer will explain it), be sure to attach a benchmark data here. --> --- .../src/main/java/org/apache/fury/reflect/TypeParameter.java | 2 ++ java/fury-core/src/main/java/org/apache/fury/reflect/TypeRef.java | 6 ++---- java/fury-core/src/main/java/org/apache/fury/reflect/Types.java | 2 ++ 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/java/fury-core/src/main/java/org/apache/fury/reflect/TypeParameter.java b/java/fury-core/src/main/java/org/apache/fury/reflect/TypeParameter.java index 2823cbd7..1612e65c 100644 --- a/java/fury-core/src/main/java/org/apache/fury/reflect/TypeParameter.java +++ b/java/fury-core/src/main/java/org/apache/fury/reflect/TypeParameter.java @@ -19,6 +19,8 @@ import java.lang.reflect.Type; import java.lang.reflect.TypeVariable; import java.util.Objects; +// Derived from Guava 32.1.2 com.google.common.reflect.TypeParameter +// https://github.com/google/guava/blob/9f6a3840/guava/src/com/google/common/reflect/TypeParameter.java public abstract class TypeParameter<X> { final TypeVariable<?> typeVariable; diff --git a/java/fury-core/src/main/java/org/apache/fury/reflect/TypeRef.java b/java/fury-core/src/main/java/org/apache/fury/reflect/TypeRef.java index 9dae933f..9a41fa13 100644 --- a/java/fury-core/src/main/java/org/apache/fury/reflect/TypeRef.java +++ b/java/fury-core/src/main/java/org/apache/fury/reflect/TypeRef.java @@ -35,10 +35,8 @@ import java.util.stream.Collectors; import java.util.stream.Stream; import org.apache.fury.type.TypeUtils; -/** - * Mostly derived from Guava 32.1.2 com.google.common.reflect.TypeToken - * https://github.com/google/guava/blob/master/guava/src/com/google/common/reflect/TypeToken.java - */ +// Mostly derived from Guava 32.1.2 com.google.common.reflect.TypeToken +// https://github.com/google/guava/blob/9f6a3840/guava/src/com/google/common/reflect/TypeToken.java public class TypeRef<T> { private final Type type; diff --git a/java/fury-core/src/main/java/org/apache/fury/reflect/Types.java b/java/fury-core/src/main/java/org/apache/fury/reflect/Types.java index 1f357863..cbfc7cdb 100644 --- a/java/fury-core/src/main/java/org/apache/fury/reflect/Types.java +++ b/java/fury-core/src/main/java/org/apache/fury/reflect/Types.java @@ -27,6 +27,8 @@ import java.util.Arrays; import java.util.Objects; import javax.annotation.CheckForNull; +// Derived from Guava 32.1.2 com.google.common.reflect.Types +// https://github.com/google/guava/blob/9f6a3840/guava/src/com/google/common/reflect/Types.java class Types { public static Type newArrayType(Type componentType) { if (componentType instanceof WildcardType) { --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@fury.apache.org For additional commands, e-mail: commits-h...@fury.apache.org