samples/deadlock/src/org/apidesign/deadlock/startuplock/CLIHandlerBlocking.java
changeset 154 0fd5e9c500b9
parent 153 b5cbb797ec0a
     1.1 --- a/samples/deadlock/src/org/apidesign/deadlock/startuplock/CLIHandlerBlocking.java	Sat Jun 14 09:58:08 2008 +0200
     1.2 +++ b/samples/deadlock/src/org/apidesign/deadlock/startuplock/CLIHandlerBlocking.java	Sat Jun 14 09:58:11 2008 +0200
     1.3 @@ -24,7 +24,9 @@
     1.4          // otherwise try to create the file yourself
     1.5          enterState(20);
     1.6          lockFile.createNewFile();
     1.7 -        DataOutputStream os = new DataOutputStream(new FileOutputStream(lockFile));
     1.8 +        DataOutputStream os = new DataOutputStream(
     1.9 +            new FileOutputStream(lockFile)
    1.10 +        );
    1.11          ServerSocket server = new ServerSocket();
    1.12          enterState(21);
    1.13          int p = server.getLocalPort();