title: java attempting to assign weaker access privilege error
body: <pre><code>[javac] U:\dms-webui-testing\test-java\dmswebui\CR\TestLogin.java:16: until() in  cannot override until() in com.thoughtworks.selenium.Wait; attempting to assign weaker access privileges; was public
  </code></pre>
  
  <p>I am getting above error for a fairly simple code:</p>
  
  <pre><code>package dmswebui.CR;
  
  import org.infineta.webui.selenium4j.MainTestCase;
  
  public class TestLogin extends MainTestCase {
  
    @Override
    public void setUp() throws Exception {
      super.setUp();
      startSeleniumSession("ChromeDriver", "somesite");
    }
  
    public void testMethod() throws Exception {
  
          new Wait("") {boolean until() {return false;}};session().open("/");
          new Wait("") {boolean until() {return false;}};session().click("id=btnLogin-button");       session().waitForPageToLoad("30000");
          for (int second = 0;; second++) {
              if (second &gt;= 60) fail("timeout 'waitForTextPresent:Logoff' ");
              try { if (session().isTextPresent("Logoff")) break; } catch (Exception e) {}
              Thread.sleep(1000);
          }
          new Wait("") {boolean until() {return false;}};session().click("id=btnUserLogout-button");
          new Wait("") {boolean until() {return false;}};session().click("id=yui-gen0-button");       session().waitForPageToLoad("30000");
    }
    public void tearDown() throws Exception {
      super.tearDown();
      closeSeleniumSession();
    }
  
  
  }
  </code></pre>
  
  <p><a href="http://release.seleniumhq.org/selenium-remote-control/0.9.2/doc/java/com/thoughtworks/selenium/Wait.html#Wait%28%29" rel="noreferrer">here</a> is how I use Wait class. Please help me to understand this error.</p>