HHH-12481 Reduce the visibility of internal implementations of Callback

This commit is contained in:
Sanne Grinovero 2018-04-12 11:49:46 +01:00
parent 5e34f82c72
commit cf75861c0e
4 changed files with 12 additions and 12 deletions

View File

@ -14,11 +14,11 @@ import org.hibernate.jpa.event.spi.CallbackType;
*
* @author Steve Ebersole
*/
public abstract class AbstractCallback implements Callback {
abstract class AbstractCallback implements Callback {
private final CallbackType callbackType;
@SuppressWarnings("WeakerAccess")
public AbstractCallback(CallbackType callbackType) {
AbstractCallback(CallbackType callbackType) {
this.callbackType = callbackType;
}

View File

@ -17,12 +17,12 @@ import org.hibernate.property.access.spi.Getter;
*
* @author Vlad Mihalcea
*/
public class EmbeddableCallback extends AbstractCallback {
final class EmbeddableCallback extends AbstractCallback {
private final Getter embeddableGetter;
private final Method callbackMethod;
@SuppressWarnings("WeakerAccess")
public EmbeddableCallback(Getter embeddableGetter, Method callbackMethod, CallbackType callbackType) {
EmbeddableCallback(Getter embeddableGetter, Method callbackMethod, CallbackType callbackType) {
super( callbackType );
this.embeddableGetter = embeddableGetter;
this.callbackMethod = callbackMethod;

View File

@ -17,11 +17,11 @@ import org.hibernate.jpa.event.spi.CallbackType;
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
* @author Steve Ebersole
*/
public class EntityCallback extends AbstractCallback {
final class EntityCallback extends AbstractCallback {
private final Method callbackMethod;
@SuppressWarnings("WeakerAccess")
public EntityCallback(Method callbackMethod, CallbackType callbackType) {
EntityCallback(Method callbackMethod, CallbackType callbackType) {
super( callbackType );
this.callbackMethod = callbackMethod;
}

View File

@ -18,12 +18,12 @@ import org.hibernate.resource.beans.spi.ManagedBean;
* @author <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
* @author Steve Ebersole
*/
public class ListenerCallback extends AbstractCallback {
class ListenerCallback extends AbstractCallback {
private final Method callbackMethod;
private final ManagedBean listenerManagedBean;
@SuppressWarnings("WeakerAccess")
public ListenerCallback(ManagedBean listenerManagedBean, Method callbackMethod, CallbackType callbackType) {
ListenerCallback(ManagedBean listenerManagedBean, Method callbackMethod, CallbackType callbackType) {
super( callbackType );
this.listenerManagedBean = listenerManagedBean;
this.callbackMethod = callbackMethod;