diff --git a/findbugs/test/OpenStream.java b/findbugs/test/OpenStream.java
index <HASH>..<HASH> 100644
--- a/findbugs/test/OpenStream.java
+++ b/findbugs/test/OpenStream.java
@@ -2,10 +2,23 @@ import java.io.*;
 
 public class OpenStream {
 	public static void main(String[] argv) throws Exception {
-		FileInputStream in = new FileInputStream(argv[0]);
+		FileInputStream in = null;
 
-		if (Boolean.getBoolean("foobar")) {
-			in.close();
+		try {
+			in = new FileInputStream(argv[0]);
+		} finally {
+			// Not guaranteed to be closed here!
+			if (Boolean.getBoolean("inscrutable"))
+				in.close();
+		}
+
+		FileInputStream in2 = null;
+		try {
+			in2 = new FileInputStream(argv[1]);
+		} finally {
+			// This one will be closed
+			if (in2 != null)
+				in2.close();
 		}
 
 		// oops!  exiting the method without closing the stream
Two streams, one closed and the other not


git-svn-id: <URL>