Skip to content

Commit

Permalink
fix: javadoc errors (#4088)
Browse files Browse the repository at this point in the history
  • Loading branch information
ossdhaval authored Mar 9, 2023
1 parent e06f3a5 commit be10a09
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,25 +51,25 @@
* hashpw method with a random salt, like this:
* <p>
* <code>
* String pw_hash = BCrypt.hashpw(plain_password, BCrypt.gensalt()); <br />
* String pw_hash = BCrypt.hashpw(plain_password, BCrypt.gensalt()); <br>
* </code>
* <p>
* To check whether a plaintext password matches one that has been hashed
* previously, use the checkpw method:
* <p>
* <code>
* if (BCrypt.checkpw(candidate_password, stored_hash))<br />
* &nbsp;&nbsp;&nbsp;&nbsp;System.out.println("It matches");<br />
* else<br />
* &nbsp;&nbsp;&nbsp;&nbsp;System.out.println("It does not match");<br />
* if (BCrypt.checkpw(candidate_password, stored_hash))<br>
* &nbsp;&nbsp;&nbsp;&nbsp;System.out.println("It matches");<br>
* else<br>
* &nbsp;&nbsp;&nbsp;&nbsp;System.out.println("It does not match");<br>
* </code>
* <p>
* The gensalt() method takes an optional parameter (log_rounds) that determines
* the computational complexity of the hashing:
* <p>
* <code>
* String strong_salt = BCrypt.gensalt(10)<br />
* String stronger_salt = BCrypt.gensalt(12)<br />
* String strong_salt = BCrypt.gensalt(10)<br>
* String stronger_salt = BCrypt.gensalt(12)<br>
* </code>
* <p>
* The amount of work increases exponentially (2**log_rounds), so each increment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public static boolean assignableFrom(Class<?> clazz, Class<?> intf) {

/**
* Perform resolution of a class name.
* <p/>
* <br>
* Here we first check the context classloader, if one, before delegating to
* {@link Class#forName(String, boolean, ClassLoader)} using the caller's
* classloader
Expand All @@ -176,7 +176,7 @@ public static Class<?> classForName(String name, Class<?> caller) throws ClassNo

/**
* Perform resolution of a class name.
* <p/>
* <br>
* Same as {@link #classForName(String, Class)} except that here we delegate
* to {@link Class#forName(String)} if the context classloader lookup is
* unsuccessful.
Expand All @@ -200,7 +200,7 @@ public static Class<?> classForName(String name) throws ClassNotFoundException {

/**
* Is this member publicly accessible.
* <p/>
* <br>
* Short-hand for {@link #isPublic(Class, Member)} passing the member +
* {@link Member#getDeclaringClass()}
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ <T> PagedResult<EntryData> searchPagedEntries(String dn, Filter filter, SearchSc
* @return true if successfully added
* @throws DuplicateEntryException
* @throws ConnectionException
* @throws DuplicateEntryException
* @throws ConnectionException
* @throws LDAPException
*/
boolean addEntry(String dn, Collection<Attribute> atts) throws DuplicateEntryException, ConnectionException;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ public void create() {
* @throws NumberFormatException
* @throws LDAPException
* @throws GeneralSecurityException
* @throws EncryptionException
* @throws EncryptionException
*/
protected void init(Properties props) throws NumberFormatException, LDAPException, GeneralSecurityException {
String serverProp = props.getProperty("servers");
Expand Down

0 comments on commit be10a09

Please sign in to comment.