Skip to content

Commit

Permalink
Revert "Deprecate Annotation Processor support (#292)"
Browse files Browse the repository at this point in the history
This reverts commit e5e85e9.
  • Loading branch information
making authored Apr 12, 2023
1 parent ecd6d43 commit 4115dbb
Show file tree
Hide file tree
Showing 26 changed files with 0 additions and 46 deletions.
21 changes: 0 additions & 21 deletions src/main/java/am/ik/yavi/builder/ValidatorBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ public ValidatorBuilder<T> constraint(ToCharSequence<T, String> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(StringConstraintMeta<T> meta,
Function<CharSequenceConstraint<T, String>, CharSequenceConstraint<T, String>> c) {
return this.constraint(meta.toValue(), meta.name(), c,
Expand All @@ -248,7 +247,6 @@ public ValidatorBuilder<T> constraint(ToBoolean<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(BooleanConstraintMeta<T> meta,
Function<BooleanConstraint<T>, BooleanConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, BooleanConstraint::new);
Expand All @@ -267,7 +265,6 @@ public ValidatorBuilder<T> constraint(ToCharacter<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(CharacterConstraintMeta<T> meta,
Function<CharacterConstraint<T>, CharacterConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, CharacterConstraint::new);
Expand All @@ -286,7 +283,6 @@ public ValidatorBuilder<T> constraint(ToByte<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(ByteConstraintMeta<T> meta,
Function<ByteConstraint<T>, ByteConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, ByteConstraint::new);
Expand All @@ -305,7 +301,6 @@ public ValidatorBuilder<T> constraint(ToShort<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(ShortConstraintMeta<T> meta,
Function<ShortConstraint<T>, ShortConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, ShortConstraint::new);
Expand All @@ -324,7 +319,6 @@ public ValidatorBuilder<T> constraint(ToInteger<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(IntegerConstraintMeta<T> meta,
Function<IntegerConstraint<T>, IntegerConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, IntegerConstraint::new);
Expand All @@ -343,7 +337,6 @@ public ValidatorBuilder<T> constraint(ToLong<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(LongConstraintMeta<T> meta,
Function<LongConstraint<T>, LongConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, LongConstraint::new);
Expand All @@ -362,7 +355,6 @@ public ValidatorBuilder<T> constraint(ToFloat<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(FloatConstraintMeta<T> meta,
Function<FloatConstraint<T>, FloatConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, FloatConstraint::new);
Expand All @@ -381,7 +373,6 @@ public ValidatorBuilder<T> constraint(ToDouble<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(DoubleConstraintMeta<T> meta,
Function<DoubleConstraint<T>, DoubleConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, DoubleConstraint::new);
Expand All @@ -400,7 +391,6 @@ public ValidatorBuilder<T> constraint(ToBigInteger<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(BigIntegerConstraintMeta<T> meta,
Function<BigIntegerConstraint<T>, BigIntegerConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, BigIntegerConstraint::new);
Expand All @@ -419,7 +409,6 @@ public ValidatorBuilder<T> constraint(ToBigDecimal<T> f, String name,
/**
* @since 0.4.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(BigDecimalConstraintMeta<T> meta,
Function<BigDecimalConstraint<T>, BigDecimalConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, BigDecimalConstraint::new);
Expand All @@ -433,7 +422,6 @@ public ValidatorBuilder<T> _bigDecimal(ToBigDecimal<T> f, String name,
/**
* @since 0.10.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(ToLocalTimeConstraint<T> f, String name,
Function<LocalTimeConstraint<T>, LocalTimeConstraint<T>> c) {
return this.constraint(f, name, c, LocalTimeConstraint::new);
Expand All @@ -442,7 +430,6 @@ public ValidatorBuilder<T> constraint(ToLocalTimeConstraint<T> f, String name,
/**
* @since 0.10.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(LocalTimeConstraintMeta<T> meta,
Function<LocalTimeConstraint<T>, LocalTimeConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, LocalTimeConstraint::new);
Expand All @@ -467,7 +454,6 @@ public ValidatorBuilder<T> constraint(ToLocalDateConstraint<T> f, String name,
/**
* @since 0.10.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(LocalDateConstraintMeta<T> meta,
Function<LocalDateConstraint<T>, LocalDateConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, LocalDateConstraint::new);
Expand All @@ -492,7 +478,6 @@ public ValidatorBuilder<T> constraint(ToLocalDateTimeConstraint<T> f, String nam
/**
* @since 0.10.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(LocalDateTimeConstraintMeta<T> meta,
Function<LocalDateTimeConstraint<T>, LocalDateTimeConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c,
Expand Down Expand Up @@ -593,7 +578,6 @@ public ValidatorBuilder<T> constraint(ToYearMonthConstraint<T> f, String name,
/**
* @since 0.11.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(YearMonthConstraintMeta<T> meta,
Function<YearMonthConstraint<T>, YearMonthConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, YearMonthConstraint::new);
Expand All @@ -618,7 +602,6 @@ public ValidatorBuilder<T> constraint(ToYearConstraint<T> f, String name,
/**
* @since 0.11.0
*/
@Deprecated
public ValidatorBuilder<T> constraint(YearConstraintMeta<T> meta,
Function<YearConstraint<T>, YearConstraint<T>> c) {
return this.constraint(meta.toValue(), meta.name(), c, YearConstraint::new);
Expand Down Expand Up @@ -924,7 +907,6 @@ public <N> ValidatorBuilder<T> nest(Function<T, N> nested, String name,
return this.nest(nested, name, validator, NullAs.INVALID);
}

@Deprecated
public <N> ValidatorBuilder<T> nest(ObjectConstraintMeta<T, N> meta,
Validator<N> validator) {
return this.nest(meta.toValue(), meta.name(), validator, NullAs.INVALID);
Expand All @@ -935,7 +917,6 @@ public <N> ValidatorBuilder<T> nest(Function<T, N> nested, String name,
return this.nest(nested, name, converter, NullAs.INVALID);
}

@Deprecated
public <N> ValidatorBuilder<T> nest(ObjectConstraintMeta<T, N> meta,
ValidatorBuilderConverter<N> converter) {
return this.nest(meta.toValue(), meta.name(), converter, NullAs.INVALID);
Expand All @@ -946,7 +927,6 @@ public <N> ValidatorBuilder<T> nestIfPresent(Function<T, N> nested, String name,
return this.nest(nested, name, validator, NullAs.VALID);
}

@Deprecated
public <N> ValidatorBuilder<T> nestIfPresent(ObjectConstraintMeta<T, N> meta,
Validator<N> validator) {
return this.nest(meta.toValue(), meta.name(), validator, NullAs.VALID);
Expand All @@ -957,7 +937,6 @@ public <N> ValidatorBuilder<T> nestIfPresent(Function<T, N> nested, String name,
return this.nest(nested, name, converter, NullAs.VALID);
}

@Deprecated
public <N> ValidatorBuilder<T> nestIfPresent(ObjectConstraintMeta<T, N> meta,
ValidatorBuilderConverter<N> converter) {
return this.nest(meta.toValue(), meta.name(), converter, NullAs.VALID);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface BigDecimalConstraintMeta<T> extends ConstraintMeta<T, BigDecimal> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface BigIntegerConstraintMeta<T> extends ConstraintMeta<T, BigInteger> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/BooleanConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface BooleanConstraintMeta<T> extends ConstraintMeta<T, Boolean> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/ByteConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface ByteConstraintMeta<T> extends ConstraintMeta<T, Byte> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/CharacterConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface CharacterConstraintMeta<T> extends ConstraintMeta<T, Character> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/ConstraintArguments.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
/**
* @since 0.4.0
*/
@Deprecated
@Target({ ElementType.CONSTRUCTOR, ElementType.METHOD })
@Retention(RetentionPolicy.SOURCE)
public @interface ConstraintArguments {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/ConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface ConstraintMeta<T, V> {
String name();

Expand Down
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/ConstraintTarget.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
/**
* @since 0.4.0
*/
@Deprecated
@Target({ ElementType.METHOD, ElementType.PARAMETER })
@Retention(RetentionPolicy.SOURCE)
public @interface ConstraintTarget {
Expand Down
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/DoubleConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface DoubleConstraintMeta<T> extends ConstraintMeta<T, Double> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/FloatConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface FloatConstraintMeta<T> extends ConstraintMeta<T, Float> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/InstantConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.10.0
*/
@Deprecated
public interface InstantConstraintMeta<T> extends ConstraintMeta<T, Instant> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/IntegerConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface IntegerConstraintMeta<T> extends ConstraintMeta<T, Integer> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/LocalDateConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.10.0
*/
@Deprecated
public interface LocalDateConstraintMeta<T> extends ConstraintMeta<T, LocalDate> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.10.0
*/
@Deprecated
public interface LocalDateTimeConstraintMeta<T> extends ConstraintMeta<T, LocalDateTime> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/LocalTimeConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.10.0
*/
@Deprecated
public interface LocalTimeConstraintMeta<T> extends ConstraintMeta<T, LocalTime> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/LongConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface LongConstraintMeta<T> extends ConstraintMeta<T, Long> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/ObjectConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface ObjectConstraintMeta<T, E> extends ConstraintMeta<T, E> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.10.0
*/
@Deprecated
public interface OffsetDateTimeConstraintMeta<T>
extends ConstraintMeta<T, OffsetDateTime> {

Expand Down
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/ShortConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface ShortConstraintMeta<T> extends ConstraintMeta<T, Short> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/StringConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
/**
* @since 0.4.0
*/
@Deprecated
public interface StringConstraintMeta<T> extends ConstraintMeta<T, String> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/YearConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.11.0
*/
@Deprecated
public interface YearConstraintMeta<T> extends ConstraintMeta<T, Year> {

}
1 change: 0 additions & 1 deletion src/main/java/am/ik/yavi/meta/YearMonthConstraintMeta.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.11.0
*/
@Deprecated
public interface YearMonthConstraintMeta<T> extends ConstraintMeta<T, YearMonth> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
/**
* @since 0.10.0
*/
@Deprecated
public interface ZonedDateTimeConstraintMeta<T> extends ConstraintMeta<T, ZonedDateTime> {

}
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@
*/
@SupportedAnnotationTypes({ "am.ik.yavi.meta.ConstraintTarget",
"am.ik.yavi.meta.ConstraintArguments" })
@Deprecated
public class ConstraintMetaProcessor extends AbstractProcessor {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
/**
* @since 0.4.0
*/
@Deprecated
class ConstraintMetaTemplate {

private static final Set<String> supportedTypes = new HashSet<String>() {
Expand Down

0 comments on commit 4115dbb

Please sign in to comment.