Skip to content

Commit

Permalink
[CODE HEADER] Remove all fury author tag (#1282)
Browse files Browse the repository at this point in the history
Closes #1281
  • Loading branch information
chaokunyang authored Dec 29, 2023
1 parent 5eafd5f commit 03f0ff4
Show file tree
Hide file tree
Showing 172 changed files with 119 additions and 673 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,7 @@
import org.apache.fury.io.ClassLoaderObjectInputStream;
import org.apache.fury.util.Preconditions;

/**
* Benchmark suite for fury and jdk.
*
* @author chaokunyang
*/
/** Benchmark suite for fury and jdk. */
public class Benchmark {
static ObjectInputFilter filter =
ObjectInputFilter.Config.createFilter("org.apache.fury.graalvm.*");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
* Test suite for collection.
*
* @author chaokunyang
*/
/** Test suite for collection. */
public class CollectionSuite {
private static final Logger LOG = LoggerFactory.getLogger(CollectionSuite.class);

Expand Down
2 changes: 0 additions & 2 deletions java/fury-core/src/main/java/org/apache/fury/Fury.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@
*
* <p>serialize/deserialize is user API for root object serialization, write/read api is for inner
* serialization.
*
* @author chaokunyang
*/
@NotThreadSafe
public final class Fury {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@
* A thread safe serialization entrance for {@link Fury} by binding a {@link Fury} for every thread.
* Note that the thread shouldn't be created and destroyed frequently, otherwise the {@link Fury}
* will be created and destroyed frequently, which is slow.
*
* @author chaokunyang
*/
@ThreadSafe
public class ThreadLocalFury implements ThreadSafeFury {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@
/**
* Thread safe serializer interface. {@link Fury} is not thread-safe, the implementation of this
* interface will be thread-safe. And support switch classloader dynamically.
*
* @author chaokunyang
*/
public interface ThreadSafeFury {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@
/**
* An annotation to mark a method will be invoked by generated method. This annotation is used for
* documentation only.
*
* @author chaokunyang
*/
@Retention(RetentionPolicy.SOURCE)
public @interface CodegenInvoke {}
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* Ignore fields just like transient.
*
* @author chaokunyang
*/
/** Ignore fields just like transient. */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface Ignore {}
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
* Annotation to mark methods/types as an internal developer API.
*
* @author chaokunyang
*/
/** Annotation to mark methods/types as an internal developer API. */
@Documented
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.CONSTRUCTOR, ElementType.FIELD})
@Public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,7 @@
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;

/**
* Annotation for marking classes as public, stable interfaces.
*
* @author chaokunyang
*/
/** Annotation for marking classes as public, stable interfaces. */
@Documented
@Target(ElementType.TYPE)
@Public
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
* call overhead. {@link sun.misc.Unsafe} is another method to avoid reflection cost.
*
* @see org.apache.fury.util.UnsafeFieldAccessor
* @author chaokunyang
*/
public class AccessorHelper {
private static final Logger LOG = LoggerFactory.getLogger(AccessorHelper.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@
* <li>For instance inner class, ignore outer class field.
* <li>For instance inner class, deserialized outer class field is null
* </ul>
*
* @author chaokunyang
*/
@SuppressWarnings("UnstableApiUsage")
public abstract class CodecBuilder {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@
import org.apache.fury.type.ClassDef;
import org.apache.fury.util.Preconditions;

/**
* Codec util to create and load jit serializer class.
*
* @author chaokunyang
*/
/** Codec util to create and load jit serializer class. */
public class CodecUtils {

// TODO(chaokunyang) how to uninstall org.apache.fury.codegen/builder classes for graalvm build
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@
import org.apache.fury.util.function.SerializableSupplier;
import org.apache.fury.util.record.RecordUtils;

/**
* A jit-version of {@link CompatibleSerializer}.
*
* @author chaokunyang
*/
/** A jit-version of {@link CompatibleSerializer}. */
public class CompatibleCodecBuilder extends BaseObjectCodecBuilder {
public static final String FIELD_RESOLVER_NAME = "fieldResolver";
private final FieldResolver fieldResolver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
/**
* Since janino doesn't support generics, we use {@link Object} to represent object type rather
* generic type.
*
* @author chaokunyang
*/
@SuppressWarnings({"rawtypes", "unchecked"})
public interface Generated {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,7 @@
import org.apache.fury.util.Platform;
import org.apache.fury.util.Preconditions;

/**
* A context for managing jit serialization code generation in async multithreaded environment.
*
* @author chaokunyang
*/
/** A context for managing jit serialization code generation in async multithreaded environment. */
public class JITContext {
private final Fury fury;
private final boolean asyncCompilationEnabled;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
* @see FuryBuilder#withMetaContextShare
* @see GeneratedMetaSharedSerializer
* @see MetaSharedSerializer
* @author chaokunyang
*/
public class MetaSharedCodecBuilder extends ObjectCodecBuilder {
private final ClassDef classDef;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,6 @@
* types.
*
* @see ObjectCodecOptimizer for code stats and split heuristics.
* @author chaokunyang
*/
public class ObjectCodecBuilder extends BaseObjectCodecBuilder {
public static final String BUFFER_NAME = "buffer";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
* update too.
*
* @see #buildGroups() for detailed heuristic rules.
* @author chaokunyang
*/
@Internal
public class ObjectCodecOptimizer extends ExpressionOptimizer {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,7 @@
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
* An annotation used to mark closure may contain child expressions.
*
* @author chaokunyang
*/
/** An annotation used to mark closure may contain child expressions. */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.FIELD)
public @interface ClosureVisitable {}
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@

package org.apache.fury.codegen;

/**
* Code formatter to format generated code for better readbility.
*
* @author chaokunyang
*/
/** Code formatter to format generated code for better readbility. */
public class CodeFormatter {

/** Format code to add line number for debug. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@
* Code generator will take a list of {@link CompileUnit} and compile it into a list of classes.
*
* <p>The compilation will be executed in a thread-pool parallel for speed.
*
* @author chaokunyang
*/
public class CodeGenerator {
private static final Logger LOG = LoggerFactory.getLogger(CodeGenerator.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@
* <p>All constructor of generated class will call {@code initialize()} to initialize object. We
* don't use instance initialize, so user can add init code which depends on used-passed
* constructor's args.
*
* @author chaokunyang
*/
public class CodegenContext {
public static Set<String> JAVA_RESERVED_WORDS;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@

package org.apache.fury.codegen;

/**
* An exception to indicate codegen got wrong.
*
* @author chaokunyang
*/
/** An exception to indicate codegen got wrong. */
public class CodegenException extends RuntimeException {

public CodegenException() {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@
/**
* Compile callback to be invoked just before compilation happen. This can be used to set up
* thread-safety or inspection.
*
* @author chaokunyang
*/
public interface CompileCallback {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@
/**
* Compile state to store compile info such as whether finished, and if finished, store compile
* result too.
*
* @author chaokunyang
*/
public class CompileState {
public final Lock lock;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,7 @@
import org.apache.fury.util.StringUtils;
import org.slf4j.Logger;

/**
* A CompileUnit corresponds to java file, which have a package, main class and code.
*
* @author chaokunyang
*/
/** A CompileUnit corresponds to java file, which have a package, main class and code. */
public class CompileUnit {
private static final Logger LOG = LoggerFactory.getLogger(CompileUnit.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@

import org.apache.fury.codegen.Code.ExprCode;

/**
* State for {@link Expression} when being compiling.
*
* @author chaokunyang
*/
/** State for {@link Expression} when being compiling. */
public class ExprState {
private final ExprCode exprCode;
private int accessCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,6 @@
* <p>Note that all dependent expression field are marked as non-final, so when split expression
* tree into subtrees, we can replace dependent expression fields in subtree root nodes with {@link
* Reference}.
*
* @author chaokunyang
*/
@SuppressWarnings("UnstableApiUsage")
public interface Expression {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@
/**
* Optimizer to generate expression logic in a new method and return an {@link
* org.apache.fury.codegen.Expression} to invoke the new generated method.
*
* @author chaokunyang
*/
public class ExpressionOptimizer {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,7 @@
import org.apache.fury.util.StringUtils;
import org.apache.fury.util.function.Functions;

/**
* Expression utils to create expression and code in a more convenient way.
*
* @author chaokunyang
*/
/** Expression utils to create expression and code in a more convenient way. */
@SuppressWarnings("UnstableApiUsage")
public class ExpressionUtils {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@
* site. If action return false, the subtree will stop traverse. Big method split can use this util
* for update subtree root nodes with {@link Reference} to cutoff dependencies to avoid duplicate
* codegen.
*
* @author chaokunyang
*/
@SuppressWarnings("UnstableApiUsage")
public class ExpressionVisitor {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,7 @@

package org.apache.fury.codegen;

/**
* A class to hold generated class fields into for code generation.
*
* @author chaokunyang
*/
/** A class to hold generated class fields into for code generation. */
class FieldInfo {
final boolean isStatic;
final boolean isFinal;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@
import org.codehaus.janino.util.ClassFile;
import org.slf4j.Logger;

/**
* A util to compile code to bytecode and create classloader to load generated class.
*
* @author chaokunyang
*/
/** A util to compile code to bytecode and create classloader to load generated class. */
public class JaninoUtils {
private static final Logger LOG = LoggerFactory.getLogger(JaninoUtils.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,7 @@
import java.util.Map;
import org.apache.fury.util.Preconditions;

/**
* A map which populate lazily until the first map query happens to reduce map#put cost.
*
* @author chaokunyang
*/
/** A map which populate lazily until the first map query happens to reduce map#put cost. */
public class LazyMap<K, V> extends ForwardingMap<K, V> {
private List<Entry<K, V>> entries;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@

import java.util.Map;

/**
* Map Entry implementation of {@link Map.Entry}.
*
* @author chaokunyang
*/
/** Map Entry implementation of {@link Map.Entry}. */
public class MapEntry<K, V> implements Map.Entry<K, V> {
private final K key;
private V value;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,7 @@

import org.apache.fury.annotation.Internal;

/**
* Profiling statistics for hash collision.
*
* @author chaokunyang
*/
/** Profiling statistics for hash collision. */
@Internal
public class MapStatistics {
public int maxProbeProfiled;
Expand Down
Loading

0 comments on commit 03f0ff4

Please sign in to comment.