Пример #1
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(" ");
 }
Пример #2
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(" ");
   }
 }