Skip to content

Commit 559039b

Browse files
markhbradyError Prone Team
authored andcommitted
[IfChainToSwitch] doc-only change. fix typo in code comments.
PiperOrigin-RevId: 892943144
1 parent 393c61c commit 559039b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/com/google/errorprone/bugpatterns/IfChainToSwitch.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1861,7 +1861,7 @@ public static boolean isDominatedBy(
18611861
? getType(rhsInstanceOf.type())
18621862
: getType(rhsInstanceOf.patternVariable().get().getType());
18631863
if (isSubtype(rhsType, lhsType, state)) {
1864-
// The LHS type is a subtype of the RHS type, so the LHS dominates the RHS
1864+
// The RHS type is a subtype of the LHS type, so the LHS dominates the RHS
18651865
return true;
18661866
}
18671867
}

0 commit comments

Comments
 (0)