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 @@ -367,7 +367,8 @@ private void processElement(Element element) {
367367 try {
368368 if ( !included ( element )
369369 || hasAnnotation ( element , Constants .EXCLUDE )
370- || hasPackageAnnotation ( element , Constants .EXCLUDE ) ) {
370+ || hasPackageAnnotation ( element , Constants .EXCLUDE )
371+ || element .getModifiers ().contains ( Modifier .PRIVATE ) ) {
371372 // skip it completely
372373 }
373374 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