title: IntelliJ "result of inputstream.read is ignored" - how to fix?
body: <p>I'm working on fixing some potential bugs in my application. I'm using Sonar to evaluate my code. My issue is this: </p>
  
  <pre><code>private Cipher readKey(InputStream re) throws Exception {
      byte[] encodedKey = new byte[decryptBuferSize];
      re.read(encodedKey); //Check the return value of the "read" call to see how many bytes were read. (the issue I get from Sonar)
  
  
      byte[] key = keyDcipher.doFinal(encodedKey);
      Cipher dcipher = ConverterUtils.getAesCipher();
      dcipher.init(Cipher.DECRYPT_MODE, new SecretKeySpec(key, "AES"));
      return dcipher;
  }
  </code></pre>
  
  <p>Does this mean that the byte array was empty? Why is it being ignored?
  I've never worked with bytes so I was wondering what exactly this issue means and how I can address it. I appreciate your assistance!</p>