2 Replies Latest reply on May 8, 2008 3:02 AM by tom.baeyens

    @Override

    tom.baeyens

      i don't put @Override's cause the compiler doesn't enforce it. so it will never provide any information.

      low importance: but if you added it or encounter it, please remove it.

        • 1. Re: @Override
          aguizar

          It ain't important for me either, but it works: if you add @Override to a method that does not actually override a superclass method, the compiler (both command line and eclipse) will report an error.

          C:\dev\pvm\trunk\tempranillo\pvm\test\java\org\jbpm\enterprise\CommandReceiverTest.java:93: method does not override a method from its superclass
           [javac] @Override
           [javac] ^
           [javac] protected void setUp(Object foo) throws Exception


          • 2. Re: @Override
            tom.baeyens

            ok.

            but still the other way round it doesn't work, and i don't see the need to try and do an effort of systematically start introducing it everywhere.