Skip to content

Commit 3e12241

Browse files
jquanCwangweij
authored andcommittedAug 16, 2022
8290775: Some doc errors in DerOutputStream.java
Reviewed-by: xuelei
1 parent ec53fba commit 3e12241

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed
 

‎src/java.base/share/classes/sun/security/util/DerOutputStream.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -59,19 +59,19 @@
5959
public class DerOutputStream
6060
extends ByteArrayOutputStream implements DerEncoder {
6161
/**
62-
* Construct an DER output stream.
62+
* Construct a DER output stream.
6363
*
6464
* @param size how large a buffer to preallocate.
6565
*/
6666
public DerOutputStream(int size) { super(size); }
6767

6868
/**
69-
* Construct an DER output stream.
69+
* Construct a DER output stream.
7070
*/
7171
public DerOutputStream() { }
7272

7373
/**
74-
* Writes tagged, pre-marshaled data. This calcuates and encodes
74+
* Writes tagged, pre-marshaled data. This calculates and encodes
7575
* the length, so that the output data is the standard triple of
7676
* { tag, length, data } used by all DER values.
7777
*
@@ -175,7 +175,7 @@ public void putInteger(BigInteger i) throws IOException {
175175
/**
176176
* Marshals a DER integer on the output stream.
177177
*
178-
* @param i the integer in bytes, equivalent to BigInteger::toByteArray.
178+
* @param buf the integer in bytes, equivalent to BigInteger::toByteArray.
179179
*/
180180
public void putInteger(byte[] buf) throws IOException {
181181
write(DerValue.tag_Integer);
@@ -461,8 +461,8 @@ public void putGeneralString(String s) throws IOException {
461461
* @param s the string to write
462462
* @param stringTag one of the DER string tags that indicate which
463463
* encoding should be used to write the string out.
464-
* @param enc the name of the encoder that should be used corresponding
465-
* to the above tag.
464+
* @param charset the charset that should be used corresponding to
465+
* the above tag.
466466
*/
467467
private void writeString(String s, byte stringTag, Charset charset)
468468
throws IOException {

0 commit comments

Comments
 (0)
Please sign in to comment.