Skip to content

Commit

Permalink
Javadoc fixes. (#1217)
Browse files Browse the repository at this point in the history
* Javadoc fixes.

* Oopsie.
  • Loading branch information
prbprbprb authored Sep 9, 2024
1 parent 0538a58 commit baa8e25
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions common/src/main/java/org/conscrypt/ArrayUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/**
* Compatibility utility for Arrays.
*/
@Internal
public final class ArrayUtils {
private ArrayUtils() {}

Expand Down
2 changes: 1 addition & 1 deletion common/src/main/java/org/conscrypt/Hkdf.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* Instances should be instantiated using the standard JCA name for the required HMAC.
* <p>
* Each invocation of expand or extract uses a new Mac instance and so instances
* of Hkdf are thread-safe.
* of Hkdf are thread-safe.</p>
*/
public final class Hkdf {
// HMAC algorithm to use.
Expand Down
3 changes: 1 addition & 2 deletions common/src/main/java/org/conscrypt/HpkeContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@

/**
* Hybrid Public Key Encryption (HPKE) sender APIs.
*
* @see <a href="https://www.rfc-editor.org/rfc/rfc9180.html#hpke-export">HPKE RFC 9180</a>
* <p>
* Base class for HPKE sender and recipient contexts.
* <p>
Expand All @@ -36,6 +34,7 @@
* to use for seal and open operations.
*
* Secret key material based on the context may also be generated and exported as per RFC 9180.
* @see <a href="https://www.rfc-editor.org/rfc/rfc9180.html#hpke-export">RFC 9180 (HPKE)</a>
*/
public abstract class HpkeContext {
protected final HpkeSpi spi;
Expand Down
1 change: 1 addition & 0 deletions common/src/main/java/org/conscrypt/HpkeImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
* Implementation of {@link HpkeSpi}. Should not be used directly, but rather by one
* of the subclasses of {@link HpkeContext}.
*/
@Internal
public class HpkeImpl implements HpkeSpi {
private final HpkeSuite hpkeSuite;

Expand Down
5 changes: 2 additions & 3 deletions common/src/main/java/org/conscrypt/XdhKeySpec.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

/**
* External Diffie–Hellman key spec holding a key which could be either a public or private key.
*
* <p>
* Subclasses {@code EncodedKeySpec} using the non-Standard "raw" format. The XdhKeyFactory
* class utilises this in order to create XDH keys from raw bytes and to return them
* as an XdhKeySpec allowing the raw key material to be extracted from an XDH key.
Expand Down Expand Up @@ -40,8 +40,7 @@ public boolean equals(Object o) {
if (this == o) return true;
if (!(o instanceof EncodedKeySpec)) return false;
EncodedKeySpec that = (EncodedKeySpec) o;
return (getFormat().equals(that.getFormat())
&& (Arrays.equals(getEncoded(), that.getEncoded())));
return (getFormat().equals(that.getFormat()) && Arrays.equals(getEncoded(), that.getEncoded()));
}

@Override
Expand Down

0 comments on commit baa8e25

Please sign in to comment.