Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/documentation/custom-providers.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Create a custom provider of data:
=== "Java"

``` java
public static class Insect extends AbstractProvider<BaseProviders> {
public class Insect extends AbstractProvider<BaseProviders> {
private static final String[] INSECT_NAMES = new String[]{"Ant", "Beetle", "Butterfly", "Wasp"};

public Insect(BaseProviders faker) {
Expand Down Expand Up @@ -82,7 +82,7 @@ First, create the custom provider which loads the data from a file:
=== "Java"

``` java
public static class InsectFromFile extends AbstractProvider<BaseProviders> {
public class InsectFromFile extends AbstractProvider<BaseProviders> {
private static final String KEY = "insectsfromfile";

public InsectFromFile(BaseProviders faker) {
Expand All @@ -92,11 +92,11 @@ First, create the custom provider which loads the data from a file:
}

public String ant() {
return resolve(KEY + ".ants", null, faker);
return resolve(KEY + ".ants");
}

public String bee() {
return resolve(KEY + ".bees", null, faker);
return resolve(KEY + ".bees");
}
}
```
Expand Down