title: Java: Caught exception is immediately rethrown? What's the problem?
body: <p>I have the following Java code (that I thought was OK) but the IDE is warning me that &quot;IOExcpetion e is immediately rethrown.&quot;</p>
  <p>I'm new to exception handling in Java, and I wasn't aware there was anything wrong with doing that.</p>
  <p>From what I'm reading, it looks like my other options is to simply delete the catch block and replace it with a finally block... but then it warns that the finally block is empty.</p>
  <p>I don't have any ideas on what I should do differently.</p>
  <pre><code>private InputStream getFlutterAssetAsInputStream(String fromAsset) throws IOException {
      String assetPath = binding
              .getFlutterAssets()
              .getAssetFilePathBySubpath(fromAsset, PACKAGE_NAME);
  
      try {
        return binding.getApplicationContext().getAssets().open(assetPath);
      } catch (IOException e) {
        throw e;
      }
    }
  </code></pre>