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 @@ -373,7 +373,8 @@ private void processElement(Element element) {
373373 try {
374374 if ( !included ( element )
375375 || hasAnnotation ( element , Constants .EXCLUDE )
376- || hasPackageAnnotation ( element , Constants .EXCLUDE ) ) {
376+ || hasPackageAnnotation ( element , Constants .EXCLUDE )
377+ || element .getModifiers ().contains ( Modifier .PRIVATE ) ) {
377378 // skip it completely
378379 }
379380 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