-
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
J2ktCompatibleMonitor
classes instea…
…d of `Integer` instances, etc. (followup to cl/645331066 now that cl/645490884 has landed) RELNOTES=n/a PiperOrigin-RevId: 645481013
- Loading branch information
Showing
30 changed files
with
174 additions
and
28 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
android/guava-testlib/src/com/google/common/testing/J2ktCompatibleMonitor.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.testing; | ||
|
||
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 J2ktCompatibleMonitor 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/J2ktCompatibleMonitor.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 J2ktCompatibleMonitor 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
15 changes: 15 additions & 0 deletions
15
android/guava/src/com/google/common/collect/J2ktCompatibleMonitor.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.collect; | ||
|
||
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 J2ktCompatibleMonitor implements Serializable {} |
15 changes: 15 additions & 0 deletions
15
android/guava/src/com/google/common/io/J2ktCompatibleMonitor.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.io; | ||
|
||
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 J2ktCompatibleMonitor 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
15 changes: 15 additions & 0 deletions
15
android/guava/src/com/google/common/util/concurrent/J2ktCompatibleMonitor.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.util.concurrent; | ||
|
||
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 J2ktCompatibleMonitor 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
15 changes: 15 additions & 0 deletions
15
guava-testlib/src/com/google/common/testing/J2ktCompatibleMonitor.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.testing; | ||
|
||
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 J2ktCompatibleMonitor 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
guava/src/com/google/common/base/J2ktCompatibleMonitor.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 J2ktCompatibleMonitor 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
15 changes: 15 additions & 0 deletions
15
guava/src/com/google/common/collect/J2ktCompatibleMonitor.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.collect; | ||
|
||
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 J2ktCompatibleMonitor 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,15 @@ | ||
package com.google.common.io; | ||
|
||
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 J2ktCompatibleMonitor 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
15 changes: 15 additions & 0 deletions
15
guava/src/com/google/common/util/concurrent/J2ktCompatibleMonitor.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.util.concurrent; | ||
|
||
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 J2ktCompatibleMonitor 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