Skip to content

Commit

Permalink
Automatic code cleanup.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 602807664
  • Loading branch information
cpovirk authored and Javac Team committed Jan 30, 2024
1 parent ae0c15f commit ad61efa
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions javatests/com/google/turbine/options/LanguageVersionTest.java
Expand Up @@ -17,10 +17,10 @@
package com.google.turbine.options;

import static com.google.common.truth.Truth.assertThat;
import static com.google.common.truth.Truth8.assertThat;
import static org.junit.Assert.assertThrows;

import com.google.common.collect.ImmutableList;
import com.google.common.truth.Truth8;
import javax.lang.model.SourceVersion;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -102,9 +102,9 @@ public void invalidRelease() {

@Test
public void parseRelease() {
assertThat(LanguageVersion.fromJavacopts(ImmutableList.of("--release", "16")).release())
Truth8.assertThat(LanguageVersion.fromJavacopts(ImmutableList.of("--release", "16")).release())
.hasValue(16);
assertThat(
Truth8.assertThat(
LanguageVersion.fromJavacopts(ImmutableList.of("-source", "8", "-target", "8"))
.release())
.isEmpty();
Expand All @@ -126,11 +126,11 @@ public void parseTarget() {

@Test
public void releaseUnderride() {
assertThat(
Truth8.assertThat(
LanguageVersion.fromJavacopts(ImmutableList.of("--release", "12", "-source", "8"))
.release())
.isEmpty();
assertThat(
Truth8.assertThat(
LanguageVersion.fromJavacopts(ImmutableList.of("--release", "12", "-target", "8"))
.release())
.isEmpty();
Expand Down

0 comments on commit ad61efa

Please sign in to comment.