mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-04 08:51:02 +07:00
17 lines
613 B
HTML
17 lines
613 B
HTML
<html>
|
|
<body>
|
|
Reports redundant <code>File</code> creation in one of the following constructors when only <code>String</code> path can be used: <code>FileInputStream</code>, <code>FileOutputStream</code>,
|
|
<code>FileReader</code>, <code>FileWriter</code>, <code>PrintStream</code>, <code>PrintWriter</code>, <code>Formatter</code>.
|
|
<p>Example:</p>
|
|
<pre><code>
|
|
InputStream is = new FileInputStream(new File("in.txt"));
|
|
</code></pre>
|
|
<p>After quick-fix is applied:</p>
|
|
<pre><code>
|
|
InputStream is = new FileInputStream("in.txt");
|
|
</code></pre>
|
|
<!-- tooltip end -->
|
|
<p><small>New in 2020.3</small></p>
|
|
</body>
|
|
</html>
|