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