Skip to content

Commit

Permalink
Replace String[] with String... in a few CompilerTestCase helper meth…
Browse files Browse the repository at this point in the history
…ods.

The new signature is compatible with existing callsites, but gives additional flexibility when writing test code.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=209058337
  • Loading branch information
tjgq authored and lauraharker committed Aug 17, 2018
1 parent 40550ee commit 60162c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/com/google/javascript/jscomp/CompilerTestCase.java
Original file line number Diff line number Diff line change
Expand Up @@ -2156,7 +2156,7 @@ protected static Expected expected(String srcText) {
return new Expected(maybeCreateSources("expected", srcText));
}

protected static Expected expected(String[] srcTexts) {
protected static Expected expected(String... srcTexts) {
return new Expected(createSources("expected", srcTexts));
}

Expand Down Expand Up @@ -2189,7 +2189,7 @@ protected static Externs externs(String externSrc) {
return new Externs(maybeCreateSources("externs", externSrc));
}

protected static Externs externs(String[] srcTexts) {
protected static Externs externs(String... srcTexts) {
return new Externs(createSources("externs", srcTexts));
}

Expand Down

0 comments on commit 60162c6

Please sign in to comment.