Fix test bug niosocketimpl-branch
authoralanb
Wed, 20 Feb 2019 21:12:08 +0000
branchniosocketimpl-branch
changeset 57200 4446b7c9bc1f
parent 57199 88a41734ddbe
child 57201 b15114decb01
Fix test bug
test/jdk/java/net/SocketImpl/CustomSocketImpls.java
--- a/test/jdk/java/net/SocketImpl/CustomSocketImpls.java	Wed Feb 20 20:55:24 2019 +0000
+++ b/test/jdk/java/net/SocketImpl/CustomSocketImpls.java	Wed Feb 20 21:12:08 2019 +0000
@@ -248,7 +248,7 @@
             }
         } finally {
             if (s1 != null) s1.close();
-            if (s2 != null) s1.close();
+            if (s2 != null) s2.close();
         }
     }
 
@@ -275,7 +275,7 @@
             }
         } finally {
             if (s1 != null) s1.close();
-            if (s2 != null) s1.close();
+            if (s2 != null) s2.close();
         }
     }
 
@@ -294,7 +294,7 @@
             consumer.accept(s2);
         } finally {
             if (s1 != null) s1.close();
-            if (s2 != null) s1.close();
+            if (s2 != null) s2.close();
         }
     }
 
@@ -319,7 +319,7 @@
             consumer.accept(s2);
         } finally {
             if (s1 != null) s1.close();
-            if (s2 != null) s1.close();
+            if (s2 != null) s2.close();
         }
     }
 
@@ -338,7 +338,7 @@
             consumer.accept(s2);
         } finally {
             if (s1 != null) s1.close();
-            if (s2 != null) s1.close();
+            if (s2 != null) s2.close();
         }
     }