-
Notifications
You must be signed in to change notification settings - Fork 10.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize on package-private
XplatMonitor
classes instead of `Int…
…eger` instances, etc. (followup to cl/645331066 now that cl/645490884, cl/653538661, and cl/655485586 have landed) RELNOTES=n/a PiperOrigin-RevId: 645481013
- Loading branch information
Showing
32 changed files
with
162 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
android/guava-testlib/src/com/google/common/testing/XplatMonitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.common.testing; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* One of our per-package copies of {@link com.google.common.base.XplatMonitor}. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
android/guava/src/com/google/common/base/XplatMonitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.google.common.base; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* Using this class instead of Object will allow J2kt to substitute monitors in a way that works for | ||
* Kotlin native. This class is marked as Serializable so it can be "just" included in serializable | ||
* classes despite this not making much sense. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
13 changes: 13 additions & 0 deletions
13
android/guava/src/com/google/common/collect/XplatMonitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.common.collect; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* One of our per-package copies of {@link com.google.common.base.XplatMonitor}. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.common.io; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* One of our per-package copies of {@link com.google.common.base.XplatMonitor}. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
android/guava/src/com/google/common/util/concurrent/XplatMonitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.common.util.concurrent; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* One of our per-package copies of {@link com.google.common.base.XplatMonitor}. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
guava-testlib/src/com/google/common/testing/XplatMonitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.common.testing; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* One of our per-package copies of {@link com.google.common.base.XplatMonitor}. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package com.google.common.base; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* Using this class instead of Object will allow J2kt to substitute monitors in a way that works for | ||
* Kotlin native. This class is marked as Serializable so it can be "just" included in serializable | ||
* classes despite this not making much sense. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.common.collect; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* One of our per-package copies of {@link com.google.common.base.XplatMonitor}. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.common.io; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* One of our per-package copies of {@link com.google.common.base.XplatMonitor}. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
guava/src/com/google/common/util/concurrent/XplatMonitor.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package com.google.common.util.concurrent; | ||
|
||
import com.google.common.annotations.GwtCompatible; | ||
import com.google.errorprone.annotations.ThreadSafe; | ||
import java.io.Serializable; | ||
|
||
/** | ||
* One of our per-package copies of {@link com.google.common.base.XplatMonitor}. | ||
*/ | ||
@GwtCompatible | ||
@ThreadSafe | ||
@ElementTypesAreNonnullByDefault | ||
final class XplatMonitor implements Serializable {} |