title: how to fix this suspicious call to hashmap.get
body: <p>So this is my HashMap</p>
  <pre><code>HashMap&lt;Literal, Double&gt; literalHashMap = new HashMap&lt;&gt;();
  for(Literal literal : literalHashSet) {
      if(literal.isTrue(node.state)){ literalHashMap.put(literal, 0.0);}
      else{literalHashMap.put(literal, Double.MAX_VALUE);}
  }
  </code></pre>
  <p>Then I do this:</p>
  <pre><code>literalHashMap.put((Literal)proposition, updatedCost);
  </code></pre>
  <p>But when I do this:</p>
  <pre><code>cost += literalHashMap.get(proposition)
  </code></pre>
  <p>I see a warning saying &quot;suspicious call to hashmap.get&quot;.</p>
  <p>Any idea how to fix that?</p>