Skip to content

Commit

Permalink
Merge 7ac7e53 into 7a6e99f
Browse files Browse the repository at this point in the history
  • Loading branch information
sl-slaing committed Jan 14, 2020
2 parents 7a6e99f + 7ac7e53 commit a3eec8b
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions src/main/java/com/github/javafaker/Faker.java
Expand Up @@ -101,16 +101,24 @@ public Faker() {
}

public Faker(Locale locale) {
this(locale, null);
this(locale, (Random)null);
}

public Faker(Random random) {
this(Locale.ENGLISH, random);
}

public Faker(Locale locale, Random random) {
this.randomService = new RandomService(random);
this.fakeValuesService = new FakeValuesService(locale, randomService);
this(locale, new RandomService(random));
}

public Faker(Locale locale, RandomService randomService) {
this(new FakeValuesService(locale, randomService), randomService);
}

public Faker(FakeValuesService fakeValuesService, RandomService random) {
this.randomService = random;
this.fakeValuesService = fakeValuesService;

this.ancient = new Ancient(this);
this.app = new App(this);
Expand Down

0 comments on commit a3eec8b

Please sign in to comment.