Skip to content

Commit

Permalink
HSEARCH-3494 Fix invalid javadoc that is no longer accepted in JDK12
Browse files Browse the repository at this point in the history
  • Loading branch information
yrodiere committed Feb 19, 2019
1 parent 31d3eef commit 879779a
Show file tree
Hide file tree
Showing 8 changed files with 74 additions and 74 deletions.
Expand Up @@ -61,7 +61,7 @@ public List<Query> getFilterQueries() {
}

/**
* @return <tt>true</tt> if this contains to filters to be applied.
* @return {@code true} if this contains to filters to be applied.
*/
public boolean isEmpty() {
return filterQueries.isEmpty();
Expand Down
Expand Up @@ -114,9 +114,9 @@ public interface HSQuery extends ProjectionConstants {

/**
* Set the first element to retrieve. If not set, elements will be
* retrieved beginning from element <tt>0</tt>.
* retrieved beginning from element {@code 0}.
*
* @param firstResult a element number, numbered from <tt>0</tt>
* @param firstResult a element number, numbered from {@code 0}
* @return {@code this} to allow for method chaining
*/
HSQuery firstResult(int firstResult);
Expand Down
Expand Up @@ -50,8 +50,8 @@
* discarded by the garbage collector. Once a key has been discarded by the
* collector, the corresponding entry is no longer visible to this table;
* however, the entry may occupy space until a future table operation decides to
* reclaim it. For this reason, summary functions such as <tt>size</tt> and
* <tt>isEmpty</tt> might return a value greater than the observed number of
* reclaim it. For this reason, summary functions such as {@code size} and
* {@code isEmpty} might return a value greater than the observed number of
* entries. In order to support a high level of concurrency, stale entries are
* only reclaimed during blocking (usually mutating) operations.
*
Expand All @@ -76,19 +76,19 @@
* Just like {@link java.util.concurrent.ConcurrentHashMap}, this class obeys
* the same functional specification as {@link java.util.Hashtable}, and
* includes versions of methods corresponding to each method of
* <tt>Hashtable</tt>. However, even though all operations are thread-safe,
* {@code Hashtable}. However, even though all operations are thread-safe,
* retrieval operations do <em>not</em> entail locking, and there is
* <em>not</em> any support for locking the entire table in a way that
* prevents all access. This class is fully interoperable with
* <tt>Hashtable</tt> in programs that rely on its thread safety but not on
* {@code Hashtable} in programs that rely on its thread safety but not on
* its synchronization details.
*
* <p>
* Retrieval operations (including <tt>get</tt>) generally do not block, so
* may overlap with update operations (including <tt>put</tt> and
* <tt>remove</tt>). Retrievals reflect the results of the most recently
* Retrieval operations (including {@code get}) generally do not block, so
* may overlap with update operations (including {@code put} and
* {@code remove}). Retrievals reflect the results of the most recently
* <em>completed</em> update operations holding upon their onset. For
* aggregate operations such as <tt>putAll</tt> and <tt>clear</tt>,
* aggregate operations such as {@code putAll} and {@code clear},
* concurrent retrievals may reflect insertion or removal of only some entries.
* Similarly, Iterators and Enumerations return elements reflecting the state of
* the hash table at some point at or since the creation of the
Expand All @@ -98,7 +98,7 @@
*
* <p>
* The allowed concurrency among update operations is guided by the optional
* <tt>concurrencyLevel</tt> constructor argument (default <tt>16</tt>),
* {@code concurrencyLevel} constructor argument (default {@code 16}),
* which is used as a hint for internal sizing. The table is internally
* partitioned to try to permit the indicated number of concurrent updates
* without contention. Because placement in hash tables is essentially random,
Expand All @@ -119,7 +119,7 @@
*
* <p>
* Like {@link Hashtable} but unlike {@link HashMap}, this class does
* <em>not</em> allow <tt>null</tt> to be used as a key or value.
* <em>not</em> allow {@code null} to be used as a key or value.
*
* <p>
* This class is a member of the <a href="{@docRoot}/../technotes/guides/collections/index.html">
Expand Down Expand Up @@ -520,8 +520,8 @@ static final class Segment<K, V> extends ReentrantLock implements Serializable {

/**
* The table is rehashed when its size exceeds this threshold.
* (The value of this field is always <tt>(int)(capacity *
* loadFactor)</tt>.)
* (The value of this field is always {@code (int)(capacity *
* loadFactor)}.)
*/
transient int threshold;

Expand Down Expand Up @@ -1080,9 +1080,9 @@ public ConcurrentReferenceHashMap(Map<? extends K, ? extends V> m) {
}

/**
* Returns <tt>true</tt> if this map contains no key-value mappings.
* Returns {@code true} if this map contains no key-value mappings.
*
* @return <tt>true</tt> if this map contains no key-value mappings
* @return {@code true} if this map contains no key-value mappings
*/
@Override
public boolean isEmpty() {
Expand Down Expand Up @@ -1122,8 +1122,8 @@ public boolean isEmpty() {

/**
* Returns the number of key-value mappings in this map. If the
* map contains more than <tt>Integer.MAX_VALUE</tt> elements, returns
* <tt>Integer.MAX_VALUE</tt>.
* map contains more than {@code Integer.MAX_VALUE} elements, returns
* {@code Integer.MAX_VALUE}.
*
* @return the number of key-value mappings in this map
*/
Expand Down Expand Up @@ -1201,9 +1201,9 @@ public V get(Object key) {
*
* @param key possible key
*
* @return <tt>true</tt> if and only if the specified object
* @return {@code true} if and only if the specified object
* is a key in this table, as determined by the
* <tt>equals</tt> method; <tt>false</tt> otherwise.
* {@code equals} method; {@code false} otherwise.
*
* @throws NullPointerException if the specified key is null
*/
Expand All @@ -1217,14 +1217,14 @@ public boolean containsKey(Object key) {
}

/**
* Returns <tt>true</tt> if this map maps one or more keys to the
* Returns {@code true} if this map maps one or more keys to the
* specified value. Note: This method requires a full internal
* traversal of the hash table, and so is much slower than
* method <tt>containsKey</tt>.
* method {@code containsKey}.
*
* @param value value whose presence in this map is to be tested
*
* @return <tt>true</tt> if this map maps one or more keys to the
* @return {@code true} if this map maps one or more keys to the
* specified value
*/
@Override
Expand Down Expand Up @@ -1293,10 +1293,10 @@ public boolean containsValue(Object value) {
*
* @param value a value to search for
*
* @return <tt>true</tt> if and only if some key maps to the
* <tt>value</tt> argument in this table as
* determined by the <tt>equals</tt> method;
* <tt>false</tt> otherwise
* @return {@code true} if and only if some key maps to the
* {@code value} argument in this table as
* determined by the {@code equals} method;
* {@code false} otherwise
*
* @throws NullPointerException if the specified value is null
*/
Expand All @@ -1308,14 +1308,14 @@ public boolean contains(Object value) {
* Maps the specified key to the specified value in this table.
* Neither the key nor the value can be null.
*
* <p> The value can be retrieved by calling the <tt>get</tt> method
* <p> The value can be retrieved by calling the {@code get} method
* with a key that is equal to the original key.
*
* @param key key with which the specified value is to be associated
* @param value value to be associated with the specified key
*
* @return the previous value associated with <tt>key</tt>, or
* <tt>null</tt> if there was no mapping for <tt>key</tt>
* @return the previous value associated with {@code key}, or
* {@code null} if there was no mapping for {@code key}
*
* @throws NullPointerException if the specified key or value is null
*/
Expand All @@ -1332,7 +1332,7 @@ public V put(K key, V value) {
* {@inheritDoc}
*
* @return the previous value associated with the specified key,
* or <tt>null</tt> if there was no mapping for the key
* or {@code null} if there was no mapping for the key
*
* @throws NullPointerException if the specified key or value is null
*/
Expand Down Expand Up @@ -1365,8 +1365,8 @@ public void putAll(Map<? extends K, ? extends V> m) {
*
* @param key the key that needs to be removed
*
* @return the previous value associated with <tt>key</tt>, or
* <tt>null</tt> if there was no mapping for <tt>key</tt>
* @return the previous value associated with {@code key}, or
* {@code null} if there was no mapping for {@code key}
*
* @throws NullPointerException if the specified key is null
*/
Expand Down Expand Up @@ -1411,7 +1411,7 @@ public boolean replace(K key, V oldValue, V newValue) {
* {@inheritDoc}
*
* @return the previous value associated with the specified key,
* or <tt>null</tt> if there was no mapping for the key
* or {@code null} if there was no mapping for the key
*
* @throws NullPointerException if the specified key or value is null
*/
Expand Down Expand Up @@ -1457,12 +1457,12 @@ public void purgeStaleEntries() {
* The set is backed by the map, so changes to the map are
* reflected in the set, and vice-versa. The set supports element
* removal, which removes the corresponding mapping from this map,
* via the <tt>Iterator.remove</tt>, <tt>Set.remove</tt>,
* <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt>
* operations. It does not support the <tt>add</tt> or
* <tt>addAll</tt> operations.
* via the {@code Iterator.remove}, {@code Set.remove},
* {@code removeAll}, {@code retainAll}, and {@code clear}
* operations. It does not support the {@code add} or
* {@code addAll} operations.
*
* <p>The view's <tt>iterator</tt> is a "weakly consistent" iterator
* <p>The view's {@code iterator} is a "weakly consistent" iterator
* that will never throw {@link ConcurrentModificationException},
* and guarantees to traverse elements as they existed upon
* construction of the iterator, and may (but is not guaranteed to)
Expand All @@ -1479,12 +1479,12 @@ public Set<K> keySet() {
* The collection is backed by the map, so changes to the map are
* reflected in the collection, and vice-versa. The collection
* supports element removal, which removes the corresponding
* mapping from this map, via the <tt>Iterator.remove</tt>,
* <tt>Collection.remove</tt>, <tt>removeAll</tt>,
* <tt>retainAll</tt>, and <tt>clear</tt> operations. It does not
* support the <tt>add</tt> or <tt>addAll</tt> operations.
* mapping from this map, via the {@code Iterator.remove},
* {@code Collection.remove}, {@code removeAll},
* {@code retainAll}, and {@code clear} operations. It does not
* support the {@code add} or {@code addAll} operations.
*
* <p>The view's <tt>iterator</tt> is a "weakly consistent" iterator
* <p>The view's {@code iterator} is a "weakly consistent" iterator
* that will never throw {@link ConcurrentModificationException},
* and guarantees to traverse elements as they existed upon
* construction of the iterator, and may (but is not guaranteed to)
Expand All @@ -1501,12 +1501,12 @@ public Collection<V> values() {
* The set is backed by the map, so changes to the map are
* reflected in the set, and vice-versa. The set supports element
* removal, which removes the corresponding mapping from the map,
* via the <tt>Iterator.remove</tt>, <tt>Set.remove</tt>,
* <tt>removeAll</tt>, <tt>retainAll</tt>, and <tt>clear</tt>
* operations. It does not support the <tt>add</tt> or
* <tt>addAll</tt> operations.
* via the {@code Iterator.remove}, {@code Set.remove},
* {@code removeAll}, {@code retainAll}, and {@code clear}
* operations. It does not support the {@code add} or
* {@code addAll} operations.
*
* <p>The view's <tt>iterator</tt> is a "weakly consistent" iterator
* <p>The view's {@code iterator} is a "weakly consistent" iterator
* that will never throw {@link ConcurrentModificationException},
* and guarantees to traverse elements as they existed upon
* construction of the iterator, and may (but is not guaranteed to)
Expand Down Expand Up @@ -1855,7 +1855,7 @@ public void clear() {
/* ---------------- Serialization Support -------------- */

/**
* Save the state of the <tt>ConcurrentReferenceHashMap</tt> instance to a
* Save the state of the {@code ConcurrentReferenceHashMap} instance to a
* stream (i.e., serialize it).
*
* @param s the stream
Expand Down Expand Up @@ -1894,7 +1894,7 @@ private void writeObject(java.io.ObjectOutputStream s) throws IOException {
}

/**
* Reconstitute the <tt>ConcurrentReferenceHashMap</tt> instance from a
* Reconstitute the {@code ConcurrentReferenceHashMap} instance from a
* stream (i.e., deserialize it).
*
* @param s the stream
Expand Down
Expand Up @@ -105,7 +105,7 @@ public static ThreadPoolExecutor newScalableThreadPool(int threadsMin, int threa
public static class BlockPolicy implements RejectedExecutionHandler {

/**
* Creates a <tt>BlockPolicy</tt>.
* Creates a {@code BlockPolicy}.
*/
public BlockPolicy() {
}
Expand Down
Expand Up @@ -127,10 +127,10 @@ private ParametersBuilder(Class<?> entityType, Class<?>... entityTypes) {
* The string that allows to select how you want to reference the {@link EntityManagerFactory}.
* Possible values are:
* <ul>
* <li><tt>persistence-unit-name</tt> (the default): use the persistence unit name defined
* in <tt>persistence.xml</tt>.
* <li><tt>session-factory-name</tt>: use the session factory name defined in the Hibernate
* configuration by the <tt>hibernate.session_factory_name</tt> configuration property.
* <li>{@code persistence-unit-name} (the default): use the persistence unit name defined
* in {@code persistence.xml}.
* <li>{@code session-factory-name}: use the session factory name defined in the Hibernate
* configuration by the {@code hibernate.session_factory_name} configuration property.
* </ul>
*
* @param namespace the name of namespace to use
Expand Down
30 changes: 15 additions & 15 deletions orm/src/main/java/org/hibernate/search/MassIndexer.java
Expand Up @@ -26,29 +26,29 @@ public interface MassIndexer {
* Defaults to 1.
*
* @param threadsToIndexObjects number of entity types to be indexed in parallel
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer typesToIndexInParallel(int threadsToIndexObjects);

/**
* Set the number of threads to be used to load
* the root entities.
* @param numberOfThreads the number of threads
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer threadsToLoadObjects(int numberOfThreads);

/**
* Sets the batch size used to load the root entities.
* @param batchSize the batch size
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer batchSizeToLoadObjects(int batchSize);

/**
* Deprecated: value is ignored.
* @param numberOfThreads the number of threads
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
* @deprecated Being ignored: this method will be removed.
*/
@Deprecated
Expand All @@ -58,31 +58,31 @@ public interface MassIndexer {
* Override the default <code>MassIndexerProgressMonitor</code>.
*
* @param monitor this instance will receive updates about the massindexing progress.
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer progressMonitor(MassIndexerProgressMonitor monitor);

/**
* Sets the cache interaction mode for the data loading tasks.
* Defaults to <tt>CacheMode.IGNORE</tt>.
* Defaults to {@code CacheMode.IGNORE}.
* @param cacheMode the cache interaction mode
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer cacheMode(CacheMode cacheMode);

/**
* If index optimization has to be started at the end of the indexing process. Defaults to <tt>true</tt>.
* If index optimization has to be started at the end of the indexing process. Defaults to {@code true}.
* @param optimize {@code true} to enable the index optimization at the end of the indexing process
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer optimizeOnFinish(boolean optimize);

/**
* If index optimization should be run before starting,
* after the purgeAll. Has no effect if <tt>purgeAll</tt> is set to false.
* Defaults to <tt>true</tt>.
* after the purgeAll. Has no effect if {@code purgeAll} is set to false.
* Defaults to {@code true}.
* @param optimize {@code true} to enable the index optimization after purge
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer optimizeAfterPurge(boolean optimize);

Expand All @@ -92,7 +92,7 @@ public interface MassIndexer {
* entities in the index: otherwise search results may be duplicated.
* Defaults to true.
* @param purgeAll if {@code true} all entities will be removed from the index before starting the indexing
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer purgeAllOnStart(boolean purgeAll);

Expand All @@ -103,7 +103,7 @@ public interface MassIndexer {
* As a results the index will not be consistent
* with the database: use only for testing on an (undefined) subset of database data.
* @param maximum the maximum number of objects to index
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer limitIndexedObjectsTo(long maximum);

Expand All @@ -128,7 +128,7 @@ public interface MassIndexer {
* for example MySQL might benefit from using {@link Integer#MIN_VALUE}
* otherwise it will attempt to preload everything in memory.
* @param idFetchSize the fetch size to be used when loading primary keys
* @return <tt>this</tt> for method chaining
* @return {@code this} for method chaining
*/
MassIndexer idFetchSize(int idFetchSize);

Expand Down

0 comments on commit 879779a

Please sign in to comment.