@@ -0,0 +1,980 @@
+package sfBugs;%0D%0A%0D%0Aimport java.io.BufferedReader;%0D%0Aimport java.io.File;%0D%0Aimport java.io.FileReader;%0D%0Aimport java.io.IOException;%0D%0Aimport java.io.Reader;%0D%0Aimport java.util.HashSet;%0D%0A%0D%0Apublic class Bug1926397 %7B%0D%0A%09public static HashSet getWordSet(File wordfile) throws IOException %7B%0D%0A%09%09HashSet result = new HashSet();%0D%0A%09%09FileReader reader = null;%0D%0A%09%09try %7B%0D%0A%09%09%09reader = new FileReader(wordfile);%0D%0A%09%09%09result = getWordSet(reader);%0D%0A%09%09%7D finally %7B%0D%0A%09%09%09if (reader != null)%0D%0A%09%09%09%09reader.close();%0D%0A%09%09%7D%0D%0A%09%09return result;%0D%0A%09%7D%0D%0A%09%0D%0A%09  public static HashSet getWordSet(Reader reader) throws IOException %7B%0D%0A%09%09HashSet result = new HashSet();%0D%0A%09%09BufferedReader br = null;%0D%0A%09%09try %7B%0D%0A%09%09%09if (reader instanceof BufferedReader) %7B%0D%0A%09%09%09%09br = (BufferedReader) reader;%0D%0A%09%09%09%7D else %7B%0D%0A%09%09%09%09br = new BufferedReader(reader);%0D%0A%09%09%09%7D%0D%0A%09%09%09String word;%0D%0A%09%09%09while ((word = br.readLine()) != null) %7B%0D%0A%09%09%09%09result.add(word.trim());%0D%0A%09%09%09%7D%0D%0A%09%09%7D finally %7B%0D%0A%09%09%09if (br != null)%0D%0A%09%09%09%09br.close();%0D%0A%09%09%7D%0D%0A%09%09return result;%0D%0A%09%7D%0D%0A%0D%0A%7D%0D%0A

Test case for [ 1926397 ] Return of variable not considered a read