Skip to content

Commit

Permalink
Latest docs on successful build 6821 auto-pushed to gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
copybara-service[bot] committed Oct 30, 2024
1 parent 3d21a7f commit 02bd6b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions bugpattern/YodaCondition.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
---
title: YodaCondition
summary: The non-constant portion of an equals check generally comes first. Prefer
e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be
summary: The non-constant portion of a comparison generally comes first. For equality,
prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may
be null. For standard operators, prefer e <OPERATION>> CONSTANT.
layout: bugpattern
tags: ''
severity: WARNING
Expand Down
2 changes: 1 addition & 1 deletion bugpatterns.md
Original file line number Diff line number Diff line change
Expand Up @@ -1666,7 +1666,7 @@ __[Varifier](bugpattern/Varifier)__<br>
Consider using &#96;var&#96; here to avoid boilerplate.

__[YodaCondition](bugpattern/YodaCondition)__<br>
The non-constant portion of an equals check generally comes first. Prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be
The non-constant portion of a comparison generally comes first. For equality, prefer e.equals(CONSTANT) if e is non-null or Objects.equals(e, CONSTANT) if e may be null. For standard operators, prefer e &lt;OPERATION&gt;&gt; CONSTANT.

## Experimental : SUGGESTION

Expand Down

0 comments on commit 02bd6b8

Please sign in to comment.