optimize: fix StyleCheck errors for hippo4j-threadpool-coore (#1294)

* optimize: fix StyleCheck errors for hippo4j-threadpool-coore

* optimize: fix StyleCheck errors for hippo4j-threadpool-coore
pull/1298/head
Xin Chen 2 years ago committed by GitHub
parent 908671e887
commit e34054ac00
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -32,4 +32,5 @@
<suppress checks="TypeName" files="SpringBootConfig.java"/>
<suppress checks="ReturnCount" files="Hippo4jAgent.java"/>
<suppress checks="StaticVariableName" files="Hippo4jAgent.java"/>
<suppress checks="StaticVariableName" files="ExtensionRegistry.java"/>
</suppressions>

@ -25,6 +25,9 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* realization
*/
@Inherited
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})

@ -22,6 +22,10 @@ import cn.hippo4j.core.extension.support.ReduceType;
import java.util.List;
import java.util.stream.Collectors;
/**
* None extends
* @param <Element>
*/
public class None<Element> extends Reducer<Element, List<Element>> {
@Override

@ -26,6 +26,11 @@ import lombok.Setter;
import java.util.List;
/**
* reducer
* @param <Element>
* @param <Result>
*/
public abstract class Reducer<Element, Result> {
@Getter

@ -23,6 +23,9 @@ import java.util.List;
import java.util.Objects;
import java.util.function.Predicate;
/**
* reducers
*/
@SuppressWarnings("all")
public class Reducers {

@ -21,6 +21,9 @@ import cn.hippo4j.core.extension.config.ExtensionRegisterBootstrap;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
/**
* extension auto configuration
*/
@Configuration
public class ExtensionAutoConfiguration {

@ -34,7 +34,7 @@ import java.util.concurrent.ConcurrentHashMap;
* Extension registry
*/
@Slf4j
public class ExtensionRegistry implements IExtensionRegistry {
public final class ExtensionRegistry implements IExtensionRegistry {
private final Map<Class<? extends IExtension>, List<IExtension>> registry = new ConcurrentHashMap<>();

@ -21,6 +21,9 @@ import cn.hippo4j.core.extension.IExtension;
import java.util.List;
/**
* extension registry interface
*/
public interface IExtensionRegistry {
void register(IExtension realization);

@ -17,6 +17,9 @@
package cn.hippo4j.core.extension.support;
/**
* reduce type
*/
public enum ReduceType {
NONE,

Loading…
Cancel
Save