Skip to content

Commit ef09ab6

Browse files
committed
Style and Javadoc improvements
1 parent 0c8db19 commit ef09ab6

File tree

17 files changed

+43
-40
lines changed

17 files changed

+43
-40
lines changed

engine/src/main/java/org/hibernate/search/backend/impl/StreamingOperationSelectionDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* Sends a single operation to the related backends, considering the sharding strategy.
32-
* This delegates to {@link org.hibernate.search.indexes.spi.IndexManager#performStreamOperation(LuceneWork, boolean)}
32+
* This delegates to {@link org.hibernate.search.indexes.spi.IndexManager#performStreamOperation(LuceneWork, IndexingMonitor, boolean)}
3333
* so it's suited for streams of many LuceneWork operations which don't need strict ordering.
3434
*
3535
* @author Sanne Grinovero

engine/src/main/java/org/hibernate/search/cfg/EntityMapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public ClassBridgeMapping classBridge(Class<?> impl) {
105105
* Registers the given class bridge for the currently configured entity type. Any subsequent analyzer, parameter
106106
* etc. configurations apply to this class bridge.
107107
*
108-
* @param instance a class bridge instance
108+
* @param classBridge a class bridge instance
109109
* @return a new {@link ClassBridgeMapping} following the method chaining pattern
110110
* @experimental This method is considered experimental and it may be altered or removed in future releases
111111
* @throws org.hibernate.search.SearchException in case the same bridge instance is passed more than once for the

engine/src/main/java/org/hibernate/search/engine/spi/SearchFactoryImplementor.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,8 @@ public interface SearchFactoryImplementor extends SearchFactoryIntegrator {
7878
StatisticsImplementor getStatisticsImplementor();
7979

8080
/**
81-
* @return true if we are allowed to inspect entity state to
82-
* potentially skip some indexing operations.
83-
* Can be disabled to get pre-3.4 behavior (always rebuild document)
81+
* @return {@code true} if we are allowed to inspect entity state to skip some indexing operations.
82+
* Can be disabled to get pre-3.4 behavior which always rebuilds the document.
8483
*/
8584
boolean isDirtyChecksEnabled();
8685

engine/src/main/java/org/hibernate/search/impl/ReflectionReplacingSearchConfiguration.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ public final class ReflectionReplacingSearchConfiguration implements SearchConfi
5050
* instance, with the exception of {@link #getReflectionManager()} which will return the constructor
5151
* defined ReflectionManager.
5252
*
53-
* @param reflectionManager
54-
* @param cfg
53+
* @param reflectionManager the current reflection manager
54+
* @param cfg the search configuration
5555
*/
5656
public ReflectionReplacingSearchConfiguration(ReflectionManager reflectionManager, SearchConfiguration cfg) {
5757
this.reflectionManager = reflectionManager;

engine/src/main/java/org/hibernate/search/indexes/impl/DirectoryBasedIndexManager.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@
5151
import org.hibernate.search.util.logging.impl.LoggerFactory;
5252

5353
/**
54-
* This implementation of IndexManager is coupled to a
55-
* DirectoryProvider and a DirectoryBasedReaderProvider
54+
* This implementation of {@code IndexManager} is coupled to a
55+
* {@code DirectoryProvider} and a {@code DirectoryBasedReaderProvider}.
5656
*
5757
* @author Sanne Grinovero <sanne@hibernate.org> (C) 2011 Red Hat Inc.
5858
*/

engine/src/main/java/org/hibernate/search/indexes/interceptor/EntityIndexingInterceptor.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* the explicit indexing control API such <code>org.hibernate.search.FullTextSession.index(T)</code>
3131
* or <code>purge</code>, <purgeAll>.
3232
*
33-
* @experimental: {@link IndexingOverride} might be updated
33+
* @experimental {@link IndexingOverride} might be updated
3434
*
3535
* @author Emmanuel Bernard <emmanuel@hibernate.org>
3636
*/
@@ -70,11 +70,11 @@ public interface EntityIndexingInterceptor<T> {
7070

7171
/**
7272
* A CollectionUpdate event is fired on collections included in an indexed entity, for example when using
73-
* {@link IndexedEmbedded} This event is triggered on each indexed domain instance T contained in such a collection;
73+
* {@link org.hibernate.search.annotations.IndexedEmbedded} This event is triggered on each indexed domain instance T contained in such a collection;
7474
* this is generally similar to a {@link #onUpdate(Object)} event.
7575
*
76-
* @param entity
77-
* The entity instance
76+
* @param entity The entity instance
77+
*
7878
* @return Return {@link IndexingOverride#APPLY_DEFAULT} to have the instance removed and re-added to the index as
7979
* normal; return a different value to override the behaviour.
8080
*/

engine/src/main/java/org/hibernate/search/indexes/serialization/impl/PluggableSerializationLuceneWorkSerializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
public class PluggableSerializationLuceneWorkSerializer implements LuceneWorkSerializer {
6060
private static Log log = LoggerFactory.make();
6161

62-
private SearchFactoryImplementor searchFactory;
62+
private final SearchFactoryImplementor searchFactory;
6363
private SerializationProvider provider;
6464

6565
public PluggableSerializationLuceneWorkSerializer(SerializationProvider provider, SearchFactoryImplementor searchFactory) {
@@ -212,7 +212,7 @@ else if ( safeField.tokenStreamValue() != null ) {
212212
throw log.unknownFieldType( safeField.getClass() );
213213
}
214214
}
215-
else if (fieldable instanceof Serializable) { //Today Fieldable is Serializable but for how long?
215+
else if ( fieldable != null ) { //Today Fieldable is Serializable but for how long?
216216
serializer.addFieldWithSerializableFieldable( toByteArray( fieldable ) );
217217
}
218218
else {

engine/src/main/java/org/hibernate/search/indexes/serialization/spi/LuceneWorkSerializer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
import org.hibernate.search.backend.LuceneWork;
2626

2727
/**
28-
* For clustering we need some way to serialize the LuceneWork(s)
28+
* For clustering we need some way to serialize the {@code LuceneWork} instances.
2929
* to the other nodes.
3030
*
3131
* @author Sanne Grinovero <sanne@hibernate.org> (C) 2011 Red Hat Inc.

engine/src/main/java/org/hibernate/search/metadata/PropertyDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public interface PropertyDescriptor extends FieldContributor {
3939
*
4040
* @return {@code true} if the property is the document id, {@code false} otherwise
4141
*
42-
* @see {@link org.hibernate.search.annotations.DocumentId}
42+
* @see org.hibernate.search.annotations.DocumentId
4343
*/
4444
boolean isId();
4545
}

engine/src/main/java/org/hibernate/search/query/dsl/QueryBuilder.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
package org.hibernate.search.query.dsl;
2626

2727
/**
28-
* Builds up Lucene queries for a given entity type following the fluent API pattern. The resulting {@link Query} can
28+
* Builds up Lucene queries for a given entity type following the fluent API pattern. The resulting {@link org.apache.lucene.search.Query} can
2929
* be obtained from the final {@link Termination} object of the invocation chain.
3030
* </p>
3131
* If required, the resulting {@code Query} instance can be modified or combined with other queries, be them created

0 commit comments

Comments
 (0)