mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
bind,internal: change the default Java package to the empty string
The Objective-C bindings was recently changed to support the empty name prefix and to use that as the default. This CLs changed the Java generators in the same way, supporting the empty Java package and using it as the default. Change-Id: I857affce686c67638a2b6c4e1da5d6a88d7ba560 Reviewed-on: https://go-review.googlesource.com/34778 Reviewed-by: David Crawshaw <crawshaw@golang.org>
This commit is contained in:
@@ -10,8 +10,8 @@ import android.test.MoreAsserts;
|
||||
import java.util.Arrays;
|
||||
import java.util.Random;
|
||||
|
||||
import go.testpkg.*;
|
||||
import go.secondpkg.Secondpkg;
|
||||
import testpkg.*;
|
||||
import secondpkg.Secondpkg;
|
||||
|
||||
public class SeqTest extends InstrumentationTestCase {
|
||||
public SeqTest() {
|
||||
@@ -483,14 +483,14 @@ public class SeqTest extends InstrumentationTestCase {
|
||||
}
|
||||
|
||||
public void testImportedPkg() {
|
||||
Testpkg.callImportedI(new go.secondpkg.I() {
|
||||
Testpkg.callImportedI(new secondpkg.I() {
|
||||
@Override public long f(long i) {
|
||||
return i;
|
||||
}
|
||||
});
|
||||
assertEquals("imported string should match", Secondpkg.HelloString, Secondpkg.hello());
|
||||
go.secondpkg.I i = Testpkg.newImportedI();
|
||||
go.secondpkg.S s = Testpkg.newImportedS();
|
||||
secondpkg.I i = Testpkg.newImportedI();
|
||||
secondpkg.S s = Testpkg.newImportedS();
|
||||
i = Testpkg.getImportedVarI();
|
||||
s = Testpkg.getImportedVarS();
|
||||
assertEquals("numbers should match", 8, i.f(8));
|
||||
@@ -505,9 +505,9 @@ public class SeqTest extends InstrumentationTestCase {
|
||||
Testpkg.withImportedI(i);
|
||||
Testpkg.withImportedS(s);
|
||||
|
||||
go.secondpkg.IF f = new AnI();
|
||||
secondpkg.IF f = new AnI();
|
||||
f = Testpkg.new_();
|
||||
go.secondpkg.Ser ser = Testpkg.newSer();
|
||||
secondpkg.Ser ser = Testpkg.newSer();
|
||||
}
|
||||
|
||||
public void testRoundtripEquality() {
|
||||
|
||||
Reference in New Issue
Block a user