Make use of eq and ne. (#1994)

* chore: make use of eq instead of ==

* chore: make use of ne instead of !=
This commit is contained in:
He-Pin(kerr) 2025-08-03 17:32:32 +08:00 committed by GitHub
parent 19788583ee
commit 7325c729ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
84 changed files with 158 additions and 158 deletions

View file

@ -46,21 +46,21 @@ trait SerializationSupport {
@volatile
private var ser: Serialization = _
def serialization: Serialization = {
if (ser == null) ser = SerializationExtension(system)
if (ser eq null) ser = SerializationExtension(system)
ser
}
@volatile
private var protocol: String = _
def addressProtocol: String = {
if (protocol == null) protocol = system.provider.getDefaultAddress.protocol
if (protocol eq null) protocol = system.provider.getDefaultAddress.protocol
protocol
}
@volatile
private var transportInfo: Serialization.Information = _
def transportInformation: Serialization.Information = {
if (transportInfo == null) {
if (transportInfo eq null) {
val address = system.provider.getDefaultAddress
transportInfo = Serialization.Information(address, system)
}