Skip to content

Commit abd63d7

Browse files
committed
clean up warnings and broken Javadoc links on Cache interface
1 parent 7f9f8e1 commit abd63d7

File tree

4 files changed

+13
-16
lines changed

4 files changed

+13
-16
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*
1313
* @author Steve Ebersole
1414
*/
15-
@SuppressWarnings("UnusedDeclaration")
1615
public class BaseSessionEventListener implements SessionEventListener {
1716
@Override
1817
public void transactionCompletion(boolean successful) {

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

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
*
1919
* @author Steve Ebersole
2020
*/
21-
@SuppressWarnings( {"UnusedDeclaration"})
2221
public interface Cache extends jakarta.persistence.Cache {
2322
/**
2423
* Access to the SessionFactory this Cache is bound to.
@@ -44,7 +43,7 @@ public interface Cache extends jakarta.persistence.Cache {
4443
* @return True if the underlying cache contains corresponding data; false
4544
* otherwise.
4645
*/
47-
boolean containsEntity(Class entityClass, Object identifier);
46+
boolean containsEntity(Class<?> entityClass, Object identifier);
4847

4948
/**
5049
* Determine whether the cache contains data for the given entity "instance".
@@ -67,7 +66,7 @@ public interface Cache extends jakarta.persistence.Cache {
6766
*
6867
* @since 5.3
6968
*/
70-
void evictEntityData(Class entityClass, Object identifier);
69+
void evictEntityData(Class<?> entityClass, Object identifier);
7170

7271
/**
7372
* Evicts the entity data for a particular entity "instance".
@@ -87,7 +86,7 @@ public interface Cache extends jakarta.persistence.Cache {
8786
*
8887
* @since 5.3
8988
*/
90-
void evictEntityData(Class entityClass);
89+
void evictEntityData(Class<?> entityClass);
9190

9291
/**
9392
* Evicts all entity data from the given region (i.e. for all entities of
@@ -118,7 +117,7 @@ public interface Cache extends jakarta.persistence.Cache {
118117
*
119118
* @since 5.3
120119
*/
121-
void evictNaturalIdData(Class entityClass);
120+
void evictNaturalIdData(Class<?> entityClass);
122121

123122
/**
124123
* Evict cached data for the given entity's natural-id
@@ -155,7 +154,6 @@ public interface Cache extends jakarta.persistence.Cache {
155154
*
156155
* @return True if the underlying cache contains corresponding data; false otherwise.
157156
*/
158-
@SuppressWarnings( {"UnusedDeclaration"})
159157
boolean containsCollection(String role, Object ownerIdentifier);
160158

161159

@@ -268,10 +266,10 @@ default void evictAllRegions() {
268266
* @param entityClass The entity class.
269267
* @param identifier The entity identifier
270268
*
271-
* @deprecated Use {@link Cache#evictEntityData(Class, Serializable)} instead
269+
* @deprecated Use {@link Cache#evictEntityData(Class, Object)} instead
272270
*/
273271
@Deprecated
274-
default void evictEntity(Class entityClass, Object identifier) {
272+
default void evictEntity(Class<?> entityClass, Object identifier) {
275273
evictEntityData( entityClass, identifier );
276274
}
277275

@@ -281,7 +279,7 @@ default void evictEntity(Class entityClass, Object identifier) {
281279
* @param entityName The entity name.
282280
* @param identifier The entity identifier
283281
*
284-
* @deprecated Use {@link Cache#evictEntityData(String, Serializable)} instead
282+
* @deprecated Use {@link Cache#evictEntityData(String, Object)} instead
285283
*/
286284
@Deprecated
287285
default void evictEntity(String entityName, Object identifier) {
@@ -297,7 +295,7 @@ default void evictEntity(String entityName, Object identifier) {
297295
* @deprecated Use {@link Cache#evictEntityData(Class)} instead
298296
*/
299297
@Deprecated
300-
default void evictEntityRegion(Class entityClass) {
298+
default void evictEntityRegion(Class<?> entityClass) {
301299
evictEntityData( entityClass );
302300
}
303301

@@ -333,7 +331,7 @@ default void evictEntityRegions() {
333331
* @deprecated Use {@link Cache#evictNaturalIdData(Class)} instead
334332
*/
335333
@Deprecated
336-
default void evictNaturalIdRegion(Class entityClass) {
334+
default void evictNaturalIdRegion(Class<?> entityClass) {
337335
evictNaturalIdData( entityClass );
338336
}
339337

@@ -366,7 +364,7 @@ default void evictNaturalIdRegions() {
366364
* @param role The "collection role" (in form [owner-entity-name].[collection-property-name]).
367365
* @param ownerIdentifier The identifier of the owning entity
368366
*
369-
* @deprecated Use {@link Cache#evictCollectionData(String, Serializable)} instead
367+
* @deprecated Use {@link Cache#evictCollectionData(String, Object)} instead
370368
*/
371369
@Deprecated
372370
default void evictCollection(String role, Serializable ownerIdentifier) {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
*/
2121
public enum FlushMode {
2222
/**
23-
* The {@link Session} is only flushed when {@link Session#flush}
23+
* The {@link Session} is only flushed when {@link Session#flush()}
2424
* is called explicitly. This mode is very efficient for read-only
2525
* transactions.
2626
*/
2727
MANUAL,
2828

2929
/**
30-
* The {@link Session} is flushed when {@link Transaction#commit}
30+
* The {@link Session} is flushed when {@link Transaction#commit()}
3131
* is called.
3232
*/
3333
COMMIT,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import org.jboss.logging.Logger;
1313

1414
/**
15-
* Information about the Hibernate version.
15+
* Information about the version of Hibernate.
1616
*
1717
* @author Steve Ebersole
1818
*/

0 commit comments

Comments
 (0)