Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1541,7 +1541,6 @@ class BeamModulePlugin implements Plugin<Project> {
"DoNotMockAutoValue",
"EmptyBlockTag",
"EmptyCatch",
"EqualsGetClass",
"EqualsUnsafeCast",
"EscapedEntity",
"ExtendsAutoValue",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof Accum)) {
return false;
}
Accum accum = (Accum) o;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public boolean equals(Object object) {
if (object == null) {
return false;
}
if (object.getClass() != getClass()) {
if (!(object instanceof StationSpeed)) {
return false;
}
StationSpeed otherStationSpeed = (StationSpeed) object;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || o.getClass() != this.getClass()) {
if (!(o instanceof GameActionInfo)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof OffsetHolder)) {
return false;
}
OffsetHolder that = (OffsetHolder) o;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof TwitterConfig)) {
return false;
}
TwitterConfig that = (TwitterConfig) o;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof SerializablePipelineOptions)) {
return false;
}
SerializablePipelineOptions that = (SerializablePipelineOptions) o;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ public final boolean equals(@Nullable Object other) {
if (this == other) {
return true;
}
if (other == null || this.getClass() != other.getClass()) {
if (!(other instanceof BoundedTrieData)) {
return false;
}
BoundedTrieData that = (BoundedTrieData) other;
Expand Down Expand Up @@ -590,7 +590,7 @@ public boolean equals(@Nullable Object other) {
if (this == other) {
return true;
}
if (other == null || getClass() != other.getClass()) {
if (!(other instanceof BoundedTrieNode)) {
return false;
}
BoundedTrieNode that = (BoundedTrieNode) other;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ public Map<String, String> toMap() {

@Override
public boolean equals(Object obj) {
if (obj == null || this.getClass() != obj.getClass()) {
if (!(obj instanceof GlobalJobParametersImpl)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof CoderTypeInformation)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBroadcastStateInternals.FlinkBroadcastValueState)) {
return false;
}

Expand Down Expand Up @@ -430,7 +430,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBroadcastStateInternals.FlinkBroadcastBagState)) {
return false;
}

Expand Down Expand Up @@ -545,7 +545,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBroadcastStateInternals.FlinkCombiningState)) {
return false;
}

Expand Down Expand Up @@ -677,7 +677,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBroadcastStateInternals.FlinkCombiningStateWithContext)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof StateAndNamespaceDescriptor<?>)) {
return false;
}
StateAndNamespaceDescriptor<?> other = (StateAndNamespaceDescriptor<?>) o;
Expand Down Expand Up @@ -580,7 +580,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkValueState<?>)) {
return false;
}

Expand Down Expand Up @@ -840,7 +840,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBagState<?>)) {
return false;
}

Expand Down Expand Up @@ -1002,7 +1002,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkCombiningState<?, ?, ?, ?>)) {
return false;
}

Expand Down Expand Up @@ -1167,7 +1167,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkCombiningStateWithContext<?, ?, ?, ?>)) {
return false;
}

Expand Down Expand Up @@ -1289,7 +1289,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkStateInternals.FlinkWatermarkHoldState)) {
return false;
}

Expand Down Expand Up @@ -1511,7 +1511,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkMapState<?, ?>)) {
return false;
}

Expand Down Expand Up @@ -1660,7 +1660,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkSetState<?>)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ public Map<String, String> toMap() {

@Override
public boolean equals(Object obj) {
if (obj == null || this.getClass() != obj.getClass()) {
if (!(obj instanceof GlobalJobParametersImpl)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof CoderTypeInformation)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof CoderTypeSerializer)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBroadcastStateInternals.FlinkBroadcastValueState)) {
return false;
}

Expand Down Expand Up @@ -430,7 +430,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBroadcastStateInternals.FlinkBroadcastBagState)) {
return false;
}

Expand Down Expand Up @@ -545,7 +545,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBroadcastStateInternals.FlinkCombiningState)) {
return false;
}

Expand Down Expand Up @@ -677,7 +677,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBroadcastStateInternals.FlinkCombiningStateWithContext)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof StateAndNamespaceDescriptor<?>)) {
return false;
}
StateAndNamespaceDescriptor<?> other = (StateAndNamespaceDescriptor<?>) o;
Expand Down Expand Up @@ -580,7 +580,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkValueState<?>)) {
return false;
}

Expand Down Expand Up @@ -840,7 +840,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkBagState<?>)) {
return false;
}

Expand Down Expand Up @@ -1002,7 +1002,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkCombiningState<?, ?, ?, ?>)) {
return false;
}

Expand Down Expand Up @@ -1167,7 +1167,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkCombiningStateWithContext<?, ?, ?, ?>)) {
return false;
}

Expand Down Expand Up @@ -1289,7 +1289,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkStateInternals.FlinkWatermarkHoldState)) {
return false;
}

Expand Down Expand Up @@ -1511,7 +1511,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkMapState<?, ?>)) {
return false;
}

Expand Down Expand Up @@ -1660,7 +1660,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof FlinkSetState<?>)) {
return false;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void toLong(ProcessContext ctxt) {

@Override
public boolean equals(@Nullable Object other) {
return other != null && other.getClass().equals(getClass());
return other instanceof ToLongFn;
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ public Object decode(InputStream inStream) throws CoderException, IOException {

@Override
public boolean equals(@Nullable Object other) {
return other != null && getClass().equals(other.getClass());
return other instanceof ObjectCoder;
}

@Override
Expand Down Expand Up @@ -321,7 +321,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
return o != null && getClass() == o.getClass();
return o instanceof RowIdentity;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof WrappedContext)) {
return false;
}
WrappedContext that = (WrappedContext) o;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public boolean equals(@Nullable Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
if (!(o instanceof ByteArrayKey)) {
return false;
}
ByteArrayKey that = (ByteArrayKey) o;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public boolean equals(@Nullable Object o) {
return true;
}

if (o == null || getClass() != o.getClass()) {
if (!(o instanceof KeyedTimerData)) {
return false;
}

Expand Down
Loading
Loading