Skip to content

Commit

Permalink
Decrease visibility of some fields in generated REST Client Reactive …
Browse files Browse the repository at this point in the history
…classes
  • Loading branch information
geoand committed Nov 15, 2022
1 parent 115454e commit 839a619
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ protected Supplier<FieldDescriptor> getLazyJavaMethodParamAnnotationsField(int m
FieldDescriptor javaMethodParamAnnotationsField = FieldDescriptor.of(classCreator.getClassName(),
"javaMethodParameterAnnotations" + methodIndex, Supplier.class);
classCreator.getFieldCreator(javaMethodParamAnnotationsField)
.setModifiers(Modifier.PUBLIC | Modifier.FINAL | Modifier.STATIC);
.setModifiers(Modifier.FINAL | Modifier.STATIC); // needs to be package-private because it's used by subresources
clinit.writeStaticField(javaMethodParamAnnotationsField, javaMethodParamAnnotationsHandle);

methodParamAnnotationsStaticFields.put(methodIndex, javaMethodParamAnnotationsField);
Expand All @@ -117,7 +117,7 @@ protected Supplier<FieldDescriptor> getLazyJavaMethodGenericParametersField(int
FieldDescriptor javaMethodGenericParametersField = FieldDescriptor.of(classCreator.getClassName(),
"javaMethodGenericParameters" + methodIndex, Supplier.class);
classCreator.getFieldCreator(javaMethodGenericParametersField)
.setModifiers(Modifier.PUBLIC | Modifier.FINAL | Modifier.STATIC);
.setModifiers(Modifier.FINAL | Modifier.STATIC); // needs to be package-private because it's used by subresources
clinit.writeStaticField(javaMethodGenericParametersField, javaMethodGenericParametersHandle);

methodGenericParametersStaticFields.put(methodIndex, javaMethodGenericParametersField);
Expand Down

0 comments on commit 839a619

Please sign in to comment.