Skip to content

Commit

Permalink
issue-326: deprecate Jodatime support
Browse files Browse the repository at this point in the history
  • Loading branch information
fmbenhassine committed Jan 26, 2019
1 parent c4bbe68 commit 72ee6a3
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@
/**
* Base class for joda time randomizers.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@Deprecated
public abstract class JodaTimeAbstractRandomizer<T> implements Randomizer<T> {

private final DateRangeRandomizer delegate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
/**
* A {@link Randomizer} that generates random {@link DateTime}.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Nikola Milivojevic (0dziga0@gmail.com)
*/
@Deprecated
public class JodaTimeDateTimeRandomizer extends JodaTimeAbstractRandomizer<DateTime> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
/**
* A {@link Randomizer} that generates random {@link Duration}.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Nikola Milivojevic (0dziga0@gmail.com)
*/
@Deprecated
public class JodaTimeDurationRandomizer extends JodaTimeAbstractRandomizer<Duration> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
/**
* A {@link Randomizer} that generates random {@link Interval}.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Nikola Milivojevic (0dziga0@gmail.com)
*/
@Deprecated
public class JodaTimeIntervalRandomizer extends JodaTimeAbstractRandomizer<Interval> {

private final IntegerRandomizer delegate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
/**
* A {@link Randomizer} that generates random {@link LocalDate}.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Nikola Milivojevic (0dziga0@gmail.com)
*/
@Deprecated
public class JodaTimeLocalDateRandomizer extends JodaTimeAbstractRandomizer<LocalDate> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
/**
* A {@link Randomizer} that generates random {@link LocalDateTime}.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Nikola Milivojevic (0dziga0@gmail.com)
*/
@Deprecated
public class JodaTimeLocalDateTimeRandomizer extends JodaTimeAbstractRandomizer<LocalDateTime> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,11 @@
/**
* A {@link Randomizer} that generates random {@link LocalTime}.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Nikola Milivojevic (0dziga0@gmail.com)
*/
@Deprecated
public class JodaTimeLocalTimeRandomizer extends JodaTimeAbstractRandomizer<LocalTime> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@
/**
* A {@link Randomizer} that generates random {@link Period}.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Nikola Milivojevic (0dziga0@gmail.com)
*/
@Deprecated
public class JodaTimePeriodRandomizer extends JodaTimeAbstractRandomizer<Period> {

private final IntegerRandomizer delegate;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
/**
* A {@link Randomizer} that generates random {@link DateTime} in a given range.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@Deprecated
public class JodaTimeDateTimeRangeRandomizer extends JodaTimeAbstractRandomizer<DateTime> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
/**
* A {@link Randomizer} that generates random {@link LocalDate} in a given range.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@Deprecated
public class JodaTimeLocalDateRangeRandomizer extends JodaTimeAbstractRandomizer<LocalDate> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
/**
* A {@link Randomizer} that generates random {@link LocalDateTime} in a given range.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@Deprecated
public class JodaTimeLocalDateTimeRangeRandomizer extends JodaTimeAbstractRandomizer<LocalDateTime> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@
/**
* A {@link Randomizer} that generates random {@link LocalTime} in a given range.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
*/
@Deprecated
public class JodaTimeLocalTimeRangeRandomizer extends JodaTimeAbstractRandomizer<LocalTime> {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,12 @@
/**
* A registry of randomizers for Joda Time types.
*
* @deprecated This class is deprecated as of v3.8 and will be removed in v4.0
*
* @author Rémi Alvergnat (toilal.dev@gmail.com)
*/
@Priority(-3)
@Deprecated
public class JodaTimeRandomizerRegistry implements RandomizerRegistry {

private final Map<Class<?>, Randomizer<?>> randomizers = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#
# The MIT License
#
# Copyright (c) 2017, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
# Copyright (c) 2019, Mahmoud Ben Hassine (mahmoud.benhassine@icloud.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
Expand Down

0 comments on commit 72ee6a3

Please sign in to comment.