title: Android Studio: Github commit warning - Access can be package-private
body: <p><a href="https://i.stack.imgur.com/dDpta.png" rel="nofollow noreferrer">Warning displayed in android studio on GitHub commit request</a></p>
  
  <p>I have created earthquake class to hold the relevant data and implemented its getter, setter methods.
  I encountered a warning <strong>Warning:(7, 1) Access can be package-private</strong> while I was trying to commit the changes to GitHub.</p>
  
  <p><strong>My question for this is:</strong>
  What is the best practice while defining such classes? Should I declare them public or just leave the access modifier undefined to make it package-private? Or any other suggestions to avoid this warning?</p>