src/java.base/share/classes/com/sun/crypto/provider/DHPublicKey.java
changeset 48944 25aa8b9f1dae
parent 47216 71c04702a3d5
child 57950 4612a3cfb927
--- a/src/java.base/share/classes/com/sun/crypto/provider/DHPublicKey.java	Fri Feb 23 22:09:16 2018 +0100
+++ b/src/java.base/share/classes/com/sun/crypto/provider/DHPublicKey.java	Fri Feb 23 16:00:44 2018 -0500
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1997, 2018, 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
@@ -43,7 +43,7 @@
  *
  *
  * @see DHPrivateKey
- * @see java.security.KeyAgreement
+ * @see javax.crypto.KeyAgreement
  */
 final class DHPublicKey implements PublicKey,
 javax.crypto.interfaces.DHPublicKey, Serializable {
@@ -258,7 +258,7 @@
     }
 
     public String toString() {
-        String LINE_SEP = System.getProperty("line.separator");
+        String LINE_SEP = System.lineSeparator();
 
         StringBuilder sb
             = new StringBuilder("SunJCE Diffie-Hellman Public Key:"