Skip to content

Commit 9e3e8e2

Browse files
gsmetgunnarmorling
authored andcommitted
HV-1519 Make protected fields private in AnnotationDef
We don't need to access them directly in the subclasses, we have methods to do that.
1 parent 16207b9 commit 9e3e8e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

engine/src/main/java/org/hibernate/validator/cfg/AnnotationDef.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public abstract class AnnotationDef<C extends AnnotationDef<C, A>, A extends Ann
4545
/**
4646
* The annotation descriptor builder.
4747
*/
48-
protected final AnnotationDescriptor.Builder<A> annotationDescriptorBuilder;
48+
private final AnnotationDescriptor.Builder<A> annotationDescriptorBuilder;
4949

5050
/**
5151
* A map with annotation parameters of this definition which are annotations
@@ -55,7 +55,7 @@ public abstract class AnnotationDef<C extends AnnotationDef<C, A>, A extends Ann
5555
* needed it should be represented via {@link java.util.List} of corresponding
5656
* {@link AnnotationDef}s.
5757
*/
58-
protected final Map<String, List<AnnotationDef<?, ?>>> annotationsAsParameters;
58+
private final Map<String, List<AnnotationDef<?, ?>>> annotationsAsParameters;
5959

6060
/**
6161
* A map of annotation types that are added to {@link AnnotationDef#annotationsAsParameters}.

0 commit comments

Comments
 (0)