Skip to content

Commit 60884a4

Browse files
committed
get rid of "NOTE :" which looks terrible in compiled javadoc
- use @implNot / @apinot instead
1 parent b3625a3 commit 60884a4

File tree

62 files changed

+212
-216
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+212
-216
lines changed

hibernate-core/src/main/java/org/hibernate/QueryException.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,9 @@ public final QueryException wrapWithQueryString(String queryString) {
111111
/**
112112
* Called from {@link #wrapWithQueryString(String)} when we really need to
113113
* generate a new {@code QueryException} (or subclass).
114-
* <p>
115-
* NOTE : implementors should take care to use {@link #getOriginalMessage()}
116-
* for the message, not {@link #getMessage()}
114+
*
115+
* @implNote implementors should take care to use {@link #getOriginalMessage()}
116+
* for the message, not {@link #getMessage()}
117117
*
118118
* @param queryString The query string
119119
*

hibernate-core/src/main/java/org/hibernate/SessionFactoryObserver.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ default void sessionFactoryCreated(SessionFactory factory) {
3232
/**
3333
* Callback to indicate that the given factory is about to close. The passed factory
3434
* reference should be usable since it is only about to close.
35-
* <p>
36-
* NOTE : defined as default to allow for existing SessionFactoryObserver impls to work
37-
* in 5.2. Starting in 6.0 the default will be removed and SessionFactoryObserver impls
38-
* will be required to implement this new method.
35+
*
36+
* @apiNote defined as default to allow for existing {@code SessionFactoryObserver}
37+
* implementations to work in 5.2. Starting in 6.0 the default will be
38+
* removed and implementations will be required to implement this new method.
3939
*
4040
* @param factory The factory about to be closed.
4141
*

hibernate-core/src/main/java/org/hibernate/action/internal/AbstractEntityInsertAction.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,10 @@ protected AbstractEntityInsertAction(
6767

6868
/**
6969
* Returns the entity state.
70+
* <P>
71+
* Note that the call to {@link #nullifyTransientReferencesIfNotAlready}
72+
* can modify the entity state.
7073
*
71-
* NOTE: calling {@link #nullifyTransientReferencesIfNotAlready} can modify the
72-
* entity state.
7374
* @return the entity state.
7475
*
7576
* @see #nullifyTransientReferencesIfNotAlready

hibernate-core/src/main/java/org/hibernate/action/internal/BulkOperationCleanupAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
/**
3636
* An {@link org.hibernate.engine.spi.ActionQueue} {@link Executable} for
3737
* ensuring shared cache cleanup in relation to performed bulk HQL queries.
38-
* <p>
39-
* NOTE: currently this executes for {@code INSERT} queries as well as
38+
*
39+
* @implNote Currently this executes for {@code INSERT} queries as well as
4040
* {@code UPDATE} and {@code DELETE} queries. For {@code INSERT} it is
4141
* really not needed as we'd have no invalid entity/collection data to
4242
* clean up (we'd still need to invalidate the appropriate update-timestamps

hibernate-core/src/main/java/org/hibernate/annotations/UuidGenerator.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ enum Style {
3838
*/
3939
RANDOM,
4040
/**
41-
* Applies a time-based generation strategy consistent with IETF RFC 4122. Uses
42-
* IP address rather than mac address.
41+
* Applies a time-based generation strategy consistent with IETF RFC 4122.
42+
* Uses IP address rather than mac address.
4343
*
44-
* NOTE : Can be a bottleneck due to the need to synchronize in order to increment an
45-
* internal count as part of the algorithm.
44+
* @implNote Can be a bottleneck due to the need to synchronize in order
45+
* to increment an internal count as part of the algorithm.
4646
*/
4747
TIME
4848
}

hibernate-core/src/main/java/org/hibernate/boot/MetadataBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,10 +142,10 @@ public interface MetadataBuilder {
142142
* Allows specifying a specific Jandex index to use for reading annotation information.
143143
* <p>
144144
* It is <i>important</i> to understand that if a Jandex index is passed in, it is expected that
145-
* this Jandex index already contains all entries for all classes. No additional indexing will be
145+
* this Jandex index already contains all entries for all classes. No additional indexing will be
146146
* done in this case.
147-
* <p>
148-
* NOTE : Here for future expansion. At the moment the passed Jandex index is not used.
147+
*
148+
* @apiNote Here for future expansion. At the moment the passed Jandex index is not used.
149149
*
150150
* @param jandexView The Jandex index to use.
151151
*

hibernate-core/src/main/java/org/hibernate/boot/archive/internal/ExplodedArchiveDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import static org.hibernate.internal.log.UrlMessageBundle.URL_MESSAGE_LOGGER;
2525

2626
/**
27-
* Descriptor for exploded (directory) archives
27+
* An {@code ArchiveDescriptor} for exploded (directory) archives.
2828
*
2929
* @author Steve Ebersole
3030
*/

hibernate-core/src/main/java/org/hibernate/boot/archive/internal/JarFileBasedArchiveDescriptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
import static org.hibernate.internal.log.UrlMessageBundle.URL_MESSAGE_LOGGER;
2828

2929
/**
30-
* An ArchiveDescriptor implementation leveraging the {@link JarFile} API for processing.
30+
* An {@code ArchiveDescriptor} implementation leveraging the {@link JarFile} API for processing.
3131
*
3232
* @author Steve Ebersole
3333
*/

hibernate-core/src/main/java/org/hibernate/boot/archive/internal/JarInputStreamBasedArchiveDescriptor.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,9 @@
2222
import static org.hibernate.internal.log.UrlMessageBundle.URL_MESSAGE_LOGGER;
2323

2424
/**
25-
* An ArchiveDescriptor implementation that works on archives accessible through a {@link JarInputStream}.
26-
* NOTE : This is less efficient implementation than {@link JarFileBasedArchiveDescriptor}
25+
* An {@code ArchiveDescriptor} that works on archives accessible through a {@link JarInputStream}.
26+
*
27+
* @implNote This is less efficient implementation than {@link JarFileBasedArchiveDescriptor}.
2728
*
2829
* @author Emmanuel Bernard
2930
* @author Steve Ebersole

hibernate-core/src/main/java/org/hibernate/boot/beanvalidation/ActivationContext.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
public interface ActivationContext {
2121
/**
2222
* Access the requested validation mode(s).
23-
* <p>
24-
* IMPL NOTE : the legacy code allowed multiple mode values to be specified, so that is why it is multi-valued here.
23+
*
24+
* @implNote The legacy code allowed multiple mode values to be specified, so that is why it is multivalued here.
2525
* However, I cannot find any good reasoning why it was defined that way and even JPA states it should be a single
26-
* value. For 4.1 (in maintenance) I think it makes the most sense to not mess with it. Discuss for
27-
* 4.2 and beyond.
26+
* value. For 4.1 (in maintenance) I think it makes the most sense to not mess with it. Discuss for 4.2 and beyond.
2827
*
2928
* @return The requested validation modes
3029
*/

0 commit comments

Comments
 (0)