Skip to content

Commit

Permalink
fix(java): add guava derive comments (#1581)
Browse files Browse the repository at this point in the history
## 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.
-->
  • Loading branch information
chaokunyang authored Apr 27, 2024
1 parent f907f7f commit 108c92f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
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;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,8 @@
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
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) {
Expand Down

0 comments on commit 108c92f

Please sign in to comment.