Skip to content

Commit 7dd3982

Browse files
committed
Rename await functions
1 parent 812eb50 commit 7dd3982

File tree

3 files changed

+22
-22
lines changed

3 files changed

+22
-22
lines changed

Sources/Condition.swift

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import java_lang
88

99
public protocol Condition: JavaProtocol {
1010

11-
/// public abstract boolean java.util.concurrent.locks.Condition.await(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException
11+
/// public abstract boolean java.util.concurrent.locks.Condition.javait(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException
1212

13-
func await( time: Int64, unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool
13+
func javait( time: Int64, unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool
1414

15-
/// public abstract void java.util.concurrent.locks.Condition.await() throws java.lang.InterruptedException
15+
/// public abstract void java.util.concurrent.locks.Condition.javait() throws java.lang.InterruptedException
1616

17-
func await() throws /* java.lang.InterruptedException */
17+
func javait() throws /* java.lang.InterruptedException */
1818

1919
/// public abstract long java.util.concurrent.locks.Condition.awaitNanos(long) throws java.lang.InterruptedException
2020

@@ -43,11 +43,11 @@ open class ConditionForward: JNIObjectForward, Condition {
4343

4444
private static var ConditionJNIClass: jclass?
4545

46-
/// public abstract boolean java.util.concurrent.locks.Condition.await(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException
46+
/// public abstract boolean java.util.concurrent.locks.Condition.javait(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException
4747

4848
private static var await_MethodID_8: jmethodID?
4949

50-
open func await( time: Int64, unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool {
50+
open func javait( time: Int64, unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool {
5151
var __locals = [jobject]()
5252
var __args = [jvalue]( repeating: jvalue(), count: 2 )
5353
__args[0] = jvalue( j: time )
@@ -60,15 +60,15 @@ open class ConditionForward: JNIObjectForward, Condition {
6060
return __return != jboolean(JNI_FALSE)
6161
}
6262

63-
open func await( _ _time: Int64, _ _unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool {
64-
return try await( time: _time, unit: _unit )
63+
open func javait( _ _time: Int64, _ _unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool {
64+
return try javait( time: _time, unit: _unit )
6565
}
6666

67-
/// public abstract void java.util.concurrent.locks.Condition.await() throws java.lang.InterruptedException
67+
/// public abstract void java.util.concurrent.locks.Condition.javait() throws java.lang.InterruptedException
6868

6969
private static var await_MethodID_9: jmethodID?
7070

71-
open func await() throws /* java.lang.InterruptedException */ {
71+
open func javait() throws /* java.lang.InterruptedException */ {
7272
var __locals = [jobject]()
7373
var __args = [jvalue]( repeating: jvalue(), count: 1 )
7474
JNIMethod.CallVoidMethod( object: javaObject, methodName: "await", methodSig: "()V", methodCache: &ConditionForward.await_MethodID_9, args: &__args, locals: &__locals )

Sources/CountDownLatch.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ open class CountDownLatch: java_swift.JavaObject {
3636
self.init( count: _count )
3737
}
3838

39-
/// public boolean java.util.concurrent.CountDownLatch.await(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException
39+
/// public boolean java.util.concurrent.CountDownLatch.javait(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException
4040

4141
private static var await_MethodID_2: jmethodID?
4242

43-
open func await( timeout: Int64, unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool {
43+
open func javait( timeout: Int64, unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool {
4444
var __locals = [jobject]()
4545
var __args = [jvalue]( repeating: jvalue(), count: 2 )
4646
__args[0] = jvalue( j: timeout )
@@ -53,15 +53,15 @@ open class CountDownLatch: java_swift.JavaObject {
5353
return __return != jboolean(JNI_FALSE)
5454
}
5555

56-
open func await( _ _timeout: Int64, _ _unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool {
57-
return try await( timeout: _timeout, unit: _unit )
56+
open func javait( _ _timeout: Int64, _ _unit: TimeUnit? ) throws /* java.lang.InterruptedException */ -> Bool {
57+
return try javait( timeout: _timeout, unit: _unit )
5858
}
5959

60-
/// public void java.util.concurrent.CountDownLatch.await() throws java.lang.InterruptedException
60+
/// public void java.util.concurrent.CountDownLatch.javait() throws java.lang.InterruptedException
6161

6262
private static var await_MethodID_3: jmethodID?
6363

64-
open func await() throws /* java.lang.InterruptedException */ {
64+
open func javait() throws /* java.lang.InterruptedException */ {
6565
var __locals = [jobject]()
6666
var __args = [jvalue]( repeating: jvalue(), count: 1 )
6767
JNIMethod.CallVoidMethod( object: javaObject, methodName: "await", methodSig: "()V", methodCache: &CountDownLatch.await_MethodID_3, args: &__args, locals: &__locals )

Sources/CyclicBarrier.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,11 +64,11 @@ open class CyclicBarrier: java_swift.JavaObject {
6464
self.init( parties: _parties, barrierAction: _barrierAction )
6565
}
6666

67-
/// public int java.util.concurrent.CyclicBarrier.await(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException,java.util.concurrent.BrokenBarrierException,java.util.concurrent.TimeoutException
67+
/// public int java.util.concurrent.CyclicBarrier.javait(long,java.util.concurrent.TimeUnit) throws java.lang.InterruptedException,java.util.concurrent.BrokenBarrierException,java.util.concurrent.TimeoutException
6868

6969
private static var await_MethodID_3: jmethodID?
7070

71-
open func await( timeout: Int64, unit: TimeUnit? ) throws /* java.lang.InterruptedException, java.util.concurrent.BrokenBarrierException, java.util.concurrent.TimeoutException */ -> Int {
71+
open func javait( timeout: Int64, unit: TimeUnit? ) throws /* java.lang.InterruptedException, java.util.concurrent.BrokenBarrierException, java.util.concurrent.TimeoutException */ -> Int {
7272
var __locals = [jobject]()
7373
var __args = [jvalue]( repeating: jvalue(), count: 2 )
7474
__args[0] = jvalue( j: timeout )
@@ -81,15 +81,15 @@ open class CyclicBarrier: java_swift.JavaObject {
8181
return Int(__return)
8282
}
8383

84-
open func await( _ _timeout: Int64, _ _unit: TimeUnit? ) throws /* java.lang.InterruptedException, java.util.concurrent.BrokenBarrierException, java.util.concurrent.TimeoutException */ -> Int {
85-
return try await( timeout: _timeout, unit: _unit )
84+
open func javait( _ _timeout: Int64, _ _unit: TimeUnit? ) throws /* java.lang.InterruptedException, java.util.concurrent.BrokenBarrierException, java.util.concurrent.TimeoutException */ -> Int {
85+
return try javait( timeout: _timeout, unit: _unit )
8686
}
8787

88-
/// public int java.util.concurrent.CyclicBarrier.await() throws java.lang.InterruptedException,java.util.concurrent.BrokenBarrierException
88+
/// public int java.util.concurrent.CyclicBarrier.javait() throws java.lang.InterruptedException,java.util.concurrent.BrokenBarrierException
8989

9090
private static var await_MethodID_4: jmethodID?
9191

92-
open func await() throws /* java.lang.InterruptedException, java.util.concurrent.BrokenBarrierException */ -> Int {
92+
open func javait() throws /* java.lang.InterruptedException, java.util.concurrent.BrokenBarrierException */ -> Int {
9393
var __locals = [jobject]()
9494
var __args = [jvalue]( repeating: jvalue(), count: 1 )
9595
let __return = JNIMethod.CallIntMethod( object: javaObject, methodName: "await", methodSig: "()I", methodCache: &CyclicBarrier.await_MethodID_4, args: &__args, locals: &__locals )

0 commit comments

Comments
 (0)