Skip to content

Commit

Permalink
Removal of deprecated code.
Browse files Browse the repository at this point in the history
  • Loading branch information
bodiam committed Feb 12, 2023
1 parent 9aaa8a5 commit 1d9d7d0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 59 deletions.
48 changes: 0 additions & 48 deletions src/main/java/net/datafaker/providers/base/BaseFaker.java
Expand Up @@ -59,54 +59,6 @@ public BaseFaker(FakeValuesService fakeValuesService, FakerContext context) {
fakeValuesService.updateFakeValuesInterfaceMap(context.getLocaleChain());
}

/**
* Constructs Faker instance with default argument.
*
* @return {@link BaseFaker#BaseFaker()}
* @deprecated Use the default constructor instead
*/
@Deprecated // Use the default constructor instead
public static BaseFaker instance() {
return new BaseFaker();
}

/**
* Constructs Faker instance with provided {@link Locale}.
*
* @param locale - {@link Locale}
* @return {@link BaseFaker#BaseFaker(Locale)}
* @deprecated Use the constructor with locale instead
*/
@Deprecated
public static BaseFaker instance(Locale locale) {
return new BaseFaker(locale);
}

/**
* Constructs Faker instance with provided {@link Random}.
*
* @param random - {@link Random}
* @return {@link BaseFaker#BaseFaker(Random)}
* @deprecated Use the constructor with random instead
*/
@Deprecated
public static BaseFaker instance(Random random) {
return new BaseFaker(random);
}

/**
* Constructs Faker instance with provided {@link Locale} and {@link Random}.
*
* @param locale - {@link Locale}
* @param random - {@link Random}
* @return {@link BaseFaker#BaseFaker(Locale, Random)}
* @deprecated Use the constructor with locale and random instead
*/
@Deprecated
public static BaseFaker instance(Locale locale, Random random) {
return new BaseFaker(locale, random);
}

public FakerContext getContext() {
return context;
}
Expand Down
11 changes: 0 additions & 11 deletions src/main/java/net/datafaker/providers/base/Disease.java
Expand Up @@ -70,17 +70,6 @@ public String ophthalmologyAndOtorhinolaryngology() {
return resolve("disease.ophthalmology_and_otorhinolaryngology");
}

/**
* Generate random dermatology disease
*
* @return A dermatology disease
* @deprecated use {@link #dermatology()} instead.
*/
@Deprecated
public String dermatolory() {
return dermatology();
}

/**
* Generate random dermatology disease
*
Expand Down

0 comments on commit 1d9d7d0

Please sign in to comment.