Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8290775: Some doc errors in DerOutputStream.java
Reviewed-by: xuelei
  • Loading branch information
jquanC authored and wangweij committed Aug 16, 2022
1 parent ec53fba commit 3e12241
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -59,19 +59,19 @@
public class DerOutputStream
extends ByteArrayOutputStream implements DerEncoder {
/**
* Construct an DER output stream.
* Construct a DER output stream.
*
* @param size how large a buffer to preallocate.
*/
public DerOutputStream(int size) { super(size); }

/**
* Construct an DER output stream.
* Construct a DER output stream.
*/
public DerOutputStream() { }

/**
* Writes tagged, pre-marshaled data. This calcuates and encodes
* Writes tagged, pre-marshaled data. This calculates and encodes
* the length, so that the output data is the standard triple of
* { tag, length, data } used by all DER values.
*
Expand Down Expand Up @@ -175,7 +175,7 @@ public void putInteger(BigInteger i) throws IOException {
/**
* Marshals a DER integer on the output stream.
*
* @param i the integer in bytes, equivalent to BigInteger::toByteArray.
* @param buf the integer in bytes, equivalent to BigInteger::toByteArray.
*/
public void putInteger(byte[] buf) throws IOException {
write(DerValue.tag_Integer);
Expand Down Expand Up @@ -461,8 +461,8 @@ public void putGeneralString(String s) throws IOException {
* @param s the string to write
* @param stringTag one of the DER string tags that indicate which
* encoding should be used to write the string out.
* @param enc the name of the encoder that should be used corresponding
* to the above tag.
* @param charset the charset that should be used corresponding to
* the above tag.
*/
private void writeString(String s, byte stringTag, Charset charset)
throws IOException {
Expand Down

1 comment on commit 3e12241

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.