title: Intellij Idea hint: Condition is always false - can that be true here? (Java)
body: <p>I have the following code:</p>
  
  <pre><code>public String testExitPoints() {
      boolean myBoolean = false;
      try {
          if (getBoolean()) {
              return "exit 1";
          }
          if (getBoolean()) {
              throw new RuntimeException();
          }
      } finally {
          myBoolean = true;
      }
      if (getBoolean()) {
          return "exit 2";
      }
      return "exit 3";
  }
  
  public static boolean getBoolean() {
      Random rand = new Random();
      return rand.nextInt() &gt; 100;
  }
  </code></pre>
  
  <p>Now IntelliJ idea gives me for the second and third invocation of <code>getBoolean()</code> the following hint:</p>
  
  <pre><code>Condition 'getBoolean()' is always 'false'
  </code></pre>
  
  <p>Now to my understanding, that is not true, since <code>getBoolean()</code> can either be <code>true</code> or <code>false</code>, depending on the generated random value. Am I missing something here, or is that a bug in IntelliJ Idea?</p>