File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed
tooling/metamodel-generator/src/main/java/org/hibernate/processor Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -369,7 +369,8 @@ private void processElement(Element element) {
369369 try {
370370 if ( !included ( element )
371371 || hasAnnotation ( element , Constants .EXCLUDE )
372- || hasPackageAnnotation ( element , Constants .EXCLUDE ) ) {
372+ || hasPackageAnnotation ( element , Constants .EXCLUDE )
373+ || element .getModifiers ().contains ( Modifier .PRIVATE ) ) {
373374 // skip it completely
374375 }
375376 else if ( isEntityOrEmbeddable ( element ) && !element .getModifiers ().contains ( Modifier .PRIVATE )) {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ public static String nameToMethodName(String name) {
9898 }
9999
100100 public static String getUpperUnderscoreCaseFromLowerCamelCase (String lowerCamelCaseString ) {
101- if ( lowerCamelCaseString .length () == 1 && Character . isUpperCase ( lowerCamelCaseString .charAt ( 0 ) ) ) {
101+ if ( lowerCamelCaseString .length () == 1 && isUpperCase ( lowerCamelCaseString .charAt ( 0 ) ) ) {
102102 return "_" + lowerCamelCaseString ;
103103 }
104104 final StringBuilder result = new StringBuilder ();
You can’t perform that action at this time.
0 commit comments