예제 #1
0
 private void renderVisibility(Visibility visibility, StringBuilder builder) {
   if (!shouldRenderModifiers()) return;
   if ("package".equals(visibility.toString())) {
     builder.append("public/*package*/ ");
   } else {
     builder.append(renderKeyword(visibility.toString())).append(" ");
   }
 }
예제 #2
0
 private void renderVisibility(@NotNull Visibility visibility, @NotNull StringBuilder builder) {
   if (!modifiers.contains(Modifier.VISIBILITY)) return;
   if (normalizedVisibilities) {
     visibility = visibility.normalize();
   }
   if (!showInternalKeyword && visibility == Visibilities.INTERNAL) return;
   builder.append(renderKeyword(visibility.toString())).append(" ");
 }