< prev index next >

src/java.base/windows/native/libnio/ch/Iocp.c

Print this page

        

@@ -1,7 +1,7 @@
 /*
- * Copyright (c) 2008, 2019, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
  * under the terms of the GNU General Public License version 2 only, as
  * published by the Free Software Foundation.  Oracle designates this

@@ -140,16 +140,8 @@
 
 
     if (len == 0) {
         return NULL;
     } else {
-        if (len > 3) {
-            // Drop final '.', CR, LF
-            if (message[len - 1] == L'\n') len--;
-            if (message[len - 1] == L'\r') len--;
-            if (message[len - 1] == L'.') len--;
-            message[len] = L'\0';
-        }
-
         return (*env)->NewString(env, (const jchar *)message, (jsize)wcslen(message));
     }
 }
< prev index next >