title: Cyclomatic Complexity is 11 ( max allowed is 10 ) in Java code
body: <p>I have the following java code that violets the checkstyle saying that "<strong>Cyclomatic Complexity is 11 ( max allowed is 10 )"</strong></p>
  
  <pre><code> public boolean validate(final BindingResult bindingResult) {
          boolean validate = true;
          for (String channel : getConfiguredChannels()) {
              switch (channel) {
              case "SMS":
                  // do nothing
                  break;
              case "Email":
                  // do nothing
                  break;
              case "Facebook":
                  // do nothing
                  break;
              case "Voice":
                  final SpelExpressionParser parser = new SpelExpressionParser();
                  if (parser
                          .parseExpression(
                                  "!voiceMessageForm.audioForms.?[audioId == '' || audioId == null].isEmpty()")
                          .getValue(this, Boolean.class)) {
                      bindingResult.rejectValue("voiceMessageForm.audioForms",
                              "message.voice.provide.all.audios");
                      validate = false;
                  }
                  boolean voiceContentErrorSet = false;
                      boolean voiceDescriptionErrorSet = false;
                      for (AudioForm audioForm : (List&lt;AudioForm&gt;) parser
                              .parseExpression(
                                      "voiceMessageForm.audioForms.?[description.length() &gt; 8000]")
                              .getValue(this)) {
                          if (audioForm.getAddAudioBy().equals(
                                  AudioForm.AddBy.TTS)
                                  &amp;&amp; !voiceContentErrorSet) {
                              voiceContentErrorSet = true;
                              bindingResult.rejectValue(
                                      "voiceMessageForm.audioForms",
                                      "message.voice.content.exceed.limit");
                          } else {
                              if (!voiceDescriptionErrorSet) {
                                  voiceDescriptionErrorSet = false;
                                  bindingResult
                                          .rejectValue(
                                                  "voiceMessageForm.audioForms",
                                                  "message.describe.voice.content.exceed.limit");
                              }
                          }
                          validate = false;
                      }
                  break;
              default:
                  throw new IllegalStateException("Unsupported channel: "
                          + channel);
              }
          }
          return validate;
      }
  }
  </code></pre>
  
  <p>Please suggest a suitable way to avoid this checkstyle issue</p>