code: /*
  VisibilityModifier
  packageAllowed = (default)false
  protectedAllowed = (default)false
  publicMemberPattern = ^f[A-Z][a-zA-Z0-9]*$
  allowPublicFinalFields = (default)false
  allowPublicImmutableFields = (default)false
  immutableClassCanonicalNames = (default)java.io.File, java.lang.Boolean, java.lang.Byte, \
                                 java.lang.Character, java.lang.Double, java.lang.Float, \
                                 java.lang.Integer, java.lang.Long, java.lang.Short, \
                                 java.lang.StackTraceElement, java.lang.String, \
                                 java.math.BigDecimal, java.math.BigInteger, \
                                 java.net.Inet4Address, java.net.Inet6Address, \
                                 java.net.InetSocketAddress, java.net.URI, java.net.URL, \
                                 java.util.Locale, java.util.UUID
  ignoreAnnotationCanonicalNames = (default)com.google.common.annotations.VisibleForTesting, \
                                   org.junit.ClassRule, org.junit.Rule
  
  
  */
  
  package com.puppycrawl.tools.checkstyle.checks.design.visibilitymodifier;
  
  public class InputVisibilityModifierPublicOnly
  {
      private interface InnerInterface
      {
          String CONST = "InnerInterface";
  
          class InnerInnerClass
          {
              private int mData;
  
              private InnerInnerClass()
              {
                  final Runnable r = new Runnable() {
                          public void run() {};
                      };
              }
          }
      }
  
      private class InnerClass
      {
          private int mDiff;
      }
  
      private int mSize;
      int mLen; // violation
      protected int mDeer; // violation
      public int aFreddo; // violation
  
      /** {@inheritDoc} */
      public String toString()
      {
          return super.toString();
      }
  
      @Deprecated @Override
      public int hashCode()
      {
          return super.hashCode();
      }
  }
  