package pl.openrest.filters.predicate.registry;

import java.lang.reflect.Method;
import java.util.Arrays;
import java.util.List;

import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import pl.openrest.filters.predicate.annotation.Predicate;
import pl.openrest.filters.predicate.annotation.Predicate.PredicateType;
import pl.openrest.filters.query.annotation.Join;
import pl.openrest.filters.query.annotation.StaticFilter;

@Getter
@ToString
@EqualsAndHashCode
public class PredicateInformation {

    private final String name;
    private final Method method;
    private final PredicateType type;
    private final boolean defaultedPageable;
    private final StaticFilter staticFilter;
    private final List<Join> joins;

    private PredicateInformation(Method method, Predicate predicateAnn, StaticFilter staticFilter) {
        this.name = predicateAnn.name();
        this.method = method;
        this.type = predicateAnn.type();
        this.defaultedPageable = predicateAnn.defaultedPageable();
        this.joins = Arrays.asList(predicateAnn.joins());
        this.staticFilter = staticFilter;
    }

    private PredicateInformation(Method method, Predicate predicateAnn) {
        this(method, predicateAnn, null);
    }
}

@@ -669,53 +669,8 @@
 le;%0A
-    private final StaticFilter staticFilter;%0A
     
@@ -776,35 +776,8 @@
 eAnn
-, StaticFilter staticFilter
 ) %7B%0A
@@ -1017,173 +1017,8 @@
 ));%0A
-        this.staticFilter = staticFilter;%0A    %7D%0A%0A    private PredicateInformation(Method method, Predicate predicateAnn) %7B%0A        this(method, predicateAnn, null);%0A
     

Remove StaticFilter field from PredicateInformation