Skip to content

Commit

Permalink
Minor code simplifications
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 718898595
  • Loading branch information
blickly authored and copybara-github committed Jan 23, 2025
1 parent ea4adc3 commit 04f746a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ public void testParseLicenseMultiple() {
@Test
public void testParseLicenseOnlyContentParsesLicenseWithInvalidJsDocTag() {
String comment = "@date 11/12/2023\n@nosideeffects\n@deprecated\n@license Foo\n*/";
JSDocInfo r = parse(comment, Config.JsDocParsing.LICENSE_COMMENTS_ONLY);
JSDocInfo r = parse(comment, JsDocParsing.LICENSE_COMMENTS_ONLY);
assertThat(r).isNotNull();
assertThat(this.prevLicense).isEqualTo(" Foo\n");
assertThat(r.isNoSideEffects()).isFalse();
Expand All @@ -2072,7 +2072,7 @@ public void testParseLicenseOnlyContentParsesLicenseWithInvalidJsDocTag() {
@Test
public void testParseLicenseOnlyContentParsesPreservedCommentWithInvalidJsDocTag() {
String comment = "@date 11/12/2023\n@nosideeffects\n@deprecated\n@preserve Foo\n*/";
JSDocInfo r = parse(comment, Config.JsDocParsing.LICENSE_COMMENTS_ONLY);
JSDocInfo r = parse(comment, JsDocParsing.LICENSE_COMMENTS_ONLY);
assertThat(r).isNotNull();
assertThat(this.prevLicense).isEqualTo(" Foo\n");
assertThat(r.isNoSideEffects()).isFalse();
Expand Down

0 comments on commit 04f746a

Please sign in to comment.