Skip to content

Commit

Permalink
Stop wrapping JavaInfo into native instances
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 716226895
Change-Id: I373ea5d1ab2c4a716b7469c4a868fe086c6ac52e
  • Loading branch information
hvadehra authored and copybara-github committed Jan 16, 2025
1 parent b9b83b7 commit fd2d459
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@
import java.util.List;
import net.starlark.java.annot.StarlarkMethod;
import net.starlark.java.eval.Sequence;
import net.starlark.java.eval.StarlarkList;
import org.junit.Before;
import org.junit.Test;
import org.junit.runner.RunWith;
Expand Down Expand Up @@ -389,7 +388,8 @@ def impl(ctx):
keyForBuild(Label.parseCanonical("//java/test:extension.bzl")), "result"));

@SuppressWarnings("unchecked") // deserialization
StarlarkList<JavaOutput> javaOutputs = ((StarlarkList<JavaOutput>) info.getValue("outputs"));
ImmutableList<JavaOutput> javaOutputs =
JavaOutput.wrapSequence(info.getValue("outputs", Sequence.class));

assertThat(javaOutputs.size()).isEqualTo(1);
JavaOutput javaOutput = javaOutputs.get(0);
Expand Down

0 comments on commit fd2d459

Please sign in to comment.