Skip to content
Permalink
Browse files
Parenthesize confusing conditional
Found via error-prone.
  • Loading branch information
gaul committed Aug 22, 2017
1 parent 8341832 commit 80abf0854da42d4ea043010951b3d95774a7e9d0
Showing 1 changed file with 1 addition and 1 deletion.
@@ -50,7 +50,7 @@ public void handleError(HttpCommand command, HttpResponse response) {
if (message.contains("RESOURCE_NOT_FOUND") || message.contains("OPERATION_NOT_SUPPORTED")) {
exception = new ResourceNotFoundException(message, exception);
} else if (message.contains("INVALID_INPUT_DATA") || message.contains("ORGANIZATION_NOT_VERIFIED")
|| message.contains("SYSTEM_ERROR") && !message.contains("RETRYABLE_SYSTEM_ERROR") || message
|| (message.contains("SYSTEM_ERROR") && !message.contains("RETRYABLE_SYSTEM_ERROR")) || message
.contains("CPU_SPEED_NOT_AVAILABLE") || message.contains("CONFIGURATION_NOT_SUPPORTED")) {
exception = new IllegalStateException(message, exception);
} else if (message.contains("RESOURCE_BUSY") || message.contains("UNEXPECTED_ERROR")) {

0 comments on commit 80abf08

Please sign in to comment.