Skip to content

Commit

Permalink
Bring checks in isValidValue in a well-formed order.
Browse files Browse the repository at this point in the history
  • Loading branch information
chumer committed Jul 21, 2021
1 parent 70dbb75 commit 06c4d6d
Showing 1 changed file with 9 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2892,10 +2892,15 @@ protected final boolean assertAdopted() {
*/
@TruffleBoundary
public static boolean isValidValue(Object receiver) {
return receiver instanceof TruffleObject || receiver instanceof Integer || receiver instanceof Double //
|| receiver instanceof Long || receiver instanceof Float //
|| receiver instanceof Boolean || receiver instanceof Character //
|| receiver instanceof Byte || receiver instanceof Short //
return receiver instanceof TruffleObject //
|| receiver instanceof Boolean //
|| receiver instanceof Byte //
|| receiver instanceof Short //
|| receiver instanceof Character //
|| receiver instanceof Integer //
|| receiver instanceof Long //
|| receiver instanceof Float //
|| receiver instanceof Double //
|| receiver instanceof String;
}

Expand Down

0 comments on commit 06c4d6d

Please sign in to comment.