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 * @author Steve Ebersole
*/ */
public abstract class AbstractCallback implements Callback { abstract class AbstractCallback implements Callback {
private final CallbackType callbackType; private final CallbackType callbackType;
@SuppressWarnings("WeakerAccess") AbstractCallback(CallbackType callbackType) {
public AbstractCallback(CallbackType callbackType) {
this.callbackType = callbackType; this.callbackType = callbackType;
} }

View File

@ -17,12 +17,12 @@ import org.hibernate.property.access.spi.Getter;
* *
* @author Vlad Mihalcea * @author Vlad Mihalcea
*/ */
public class EmbeddableCallback extends AbstractCallback { final class EmbeddableCallback extends AbstractCallback {
private final Getter embeddableGetter; private final Getter embeddableGetter;
private final Method callbackMethod; private final Method callbackMethod;
@SuppressWarnings("WeakerAccess") EmbeddableCallback(Getter embeddableGetter, Method callbackMethod, CallbackType callbackType) {
public EmbeddableCallback(Getter embeddableGetter, Method callbackMethod, CallbackType callbackType) {
super( callbackType ); super( callbackType );
this.embeddableGetter = embeddableGetter; this.embeddableGetter = embeddableGetter;
this.callbackMethod = callbackMethod; 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 <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class EntityCallback extends AbstractCallback { final class EntityCallback extends AbstractCallback {
private final Method callbackMethod; private final Method callbackMethod;
@SuppressWarnings("WeakerAccess") EntityCallback(Method callbackMethod, CallbackType callbackType) {
public EntityCallback(Method callbackMethod, CallbackType callbackType) {
super( callbackType ); super( callbackType );
this.callbackMethod = callbackMethod; 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 <a href="mailto:kabir.khan@jboss.org">Kabir Khan</a>
* @author Steve Ebersole * @author Steve Ebersole
*/ */
public class ListenerCallback extends AbstractCallback { class ListenerCallback extends AbstractCallback {
private final Method callbackMethod; private final Method callbackMethod;
private final ManagedBean listenerManagedBean; private final ManagedBean listenerManagedBean;
@SuppressWarnings("WeakerAccess") ListenerCallback(ManagedBean listenerManagedBean, Method callbackMethod, CallbackType callbackType) {
public ListenerCallback(ManagedBean listenerManagedBean, Method callbackMethod, CallbackType callbackType) {
super( callbackType ); super( callbackType );
this.listenerManagedBean = listenerManagedBean; this.listenerManagedBean = listenerManagedBean;
this.callbackMethod = callbackMethod; this.callbackMethod = callbackMethod;