Skip to content

Commit

Permalink
HHH-18693 Fixing some PR comments
Browse files Browse the repository at this point in the history
  • Loading branch information
cigaly committed Nov 17, 2024
1 parent 99774e7 commit d62d7fc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,8 @@ private void processElement(Element element) {
try {
if ( !included( element )
|| hasAnnotation( element, Constants.EXCLUDE )
|| hasPackageAnnotation( element, Constants.EXCLUDE ) ) {
|| hasPackageAnnotation( element, Constants.EXCLUDE )
|| element.getModifiers().contains( Modifier.PRIVATE ) ) {
// skip it completely
}
else if ( isEntityOrEmbeddable( element ) && !element.getModifiers().contains( Modifier.PRIVATE )) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public static String nameToMethodName(String name) {
}

public static String getUpperUnderscoreCaseFromLowerCamelCase(String lowerCamelCaseString) {
if ( lowerCamelCaseString.length() == 1 && Character.isUpperCase( lowerCamelCaseString.charAt( 0 ) ) ) {
if ( lowerCamelCaseString.length() == 1 && isUpperCase( lowerCamelCaseString.charAt( 0 ) ) ) {
return "_" + lowerCamelCaseString;
}
final StringBuilder result = new StringBuilder();
Expand Down

0 comments on commit d62d7fc

Please sign in to comment.