Get rid of var usage
This commit is contained in:
parent
bcd5b9bbf2
commit
16b1172b88
|
@ -97,13 +97,13 @@ public class FabricWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
FabricWorld that = (FabricWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,13 +97,13 @@ public class FabricWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
FabricWorld that = (FabricWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,13 +97,13 @@ public class FabricWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
FabricWorld that = (FabricWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,13 +97,13 @@ public class FabricWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
FabricWorld that = (FabricWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,13 +97,13 @@ public class FabricWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
FabricWorld that = (FabricWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -97,13 +97,13 @@ public class FabricWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
FabricWorld that = (FabricWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,13 +98,13 @@ public class ForgeWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
ForgeWorld that = (ForgeWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,13 +98,13 @@ public class ForgeWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
ForgeWorld that = (ForgeWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,13 +98,13 @@ public class ForgeWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
ForgeWorld that = (ForgeWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,13 +98,13 @@ public class ForgeWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
ForgeWorld that = (ForgeWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -98,13 +98,13 @@ public class ForgeWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
ForgeWorld that = (ForgeWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -86,13 +86,13 @@ public class BukkitWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
BukkitWorld that = (BukkitWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -103,13 +103,13 @@ public class BukkitWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
BukkitWorld that = (BukkitWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
|
@ -90,13 +90,13 @@ public class SpongeWorld implements ServerWorld {
|
|||
if (o == null || getClass() != o.getClass()) return false;
|
||||
|
||||
SpongeWorld that = (SpongeWorld) o;
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null && world.equals(that.delegate.get());
|
||||
}
|
||||
|
||||
@Override
|
||||
public int hashCode() {
|
||||
var world = delegate.get();
|
||||
Object world = delegate.get();
|
||||
return world != null ? world.hashCode() : 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue