mirror of
https://github.com/netbirdio/gomobile-tvos-fork.git
synced 2026-05-22 18:43:29 -07:00
The standard copyright header at https://go.dev/doc/contribute#copyright has a single space (also see CL 20022). Also, add it to a files where it was missed. Change-Id: I341ce5b5c455efa768b65597c387866e47a6757e Reviewed-on: https://go-review.googlesource.com/c/mobile/+/649382 Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Hajime Hoshi <hajimehoshi@gmail.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
63 lines
1.2 KiB
Go
63 lines
1.2 KiB
Go
// Copyright 2014 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
package java
|
|
|
|
import (
|
|
gopkg "Java/java"
|
|
"Java/java/io"
|
|
"Java/java/lang"
|
|
"Java/java/lang/System"
|
|
"Java/java/util/Spliterators"
|
|
"Java/java/util/concurrent"
|
|
)
|
|
|
|
type Runnable struct {
|
|
lang.Runnable
|
|
}
|
|
|
|
func (r *Runnable) Run(this gopkg.Runnable) {
|
|
}
|
|
|
|
type InputStream struct {
|
|
io.InputStream
|
|
}
|
|
|
|
func (_ *InputStream) Read() (int32, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func NewInputStream() *InputStream {
|
|
return new(InputStream)
|
|
}
|
|
|
|
type Future struct {
|
|
concurrent.Future
|
|
}
|
|
|
|
func (_ *Future) Get() (lang.Object, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
// Use a trailing underscore to override multiple overloaded methods.
|
|
func (_ *Future) Get_(_ int64, _ concurrent.TimeUnit) (lang.Object, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
type Object struct {
|
|
lang.Object
|
|
}
|
|
|
|
func innerClassTypes() {
|
|
// java.util.Spliterators.iterator use inner class types
|
|
// for the return value as well as parameters.
|
|
Spliterators.Iterator(nil)
|
|
}
|
|
|
|
func returnType() {
|
|
// Implicit types (java.io.Console) should be wrapped.
|
|
cons := System.Console()
|
|
cons.Flush()
|
|
}
|