java: rather use @Deprecated annotation

than an empty @deprecated tag

Change-Id: I1646ce1c0c8823ac5be0153aeb8eb2b830e7ebfa
Reviewed-on: https://gerrit.libreoffice.org/12525
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Tested-by: Noel Grandin <noelgrandin@gmail.com>
This commit is contained in:
Noel Grandin 2014-11-12 15:53:15 +02:00 committed by Noel Grandin
parent 79c6aff069
commit 7577481809
9 changed files with 10 additions and 22 deletions

View File

@ -22,11 +22,8 @@ import java.awt.Container;
/** /**
* This interface represents an AWT container factory. * This interface represents an AWT container factory.
*
* @deprecated
*
*/ */
@Deprecated
public interface ContainerFactory public interface ContainerFactory
{ {
/** /**

View File

@ -19,9 +19,8 @@
package com.sun.star.comp.beans; package com.sun.star.comp.beans;
/** indicates an invalid argument in a function call. /** indicates an invalid argument in a function call.
*
* @deprecated
*/ */
@Deprecated
public class InvalidArgumentException extends Exception public class InvalidArgumentException extends Exception
{ {
} }

View File

@ -82,8 +82,8 @@ public class OOoBean
// @requirement FUNC.PER/0.2 // @requirement FUNC.PER/0.2
/** @internal /** @internal
* @deprecated
*/ */
@Deprecated
public void writeExternal( java.io.ObjectOutput aObjOut ) public void writeExternal( java.io.ObjectOutput aObjOut )
{ {
// TBD // TBD
@ -91,8 +91,8 @@ public class OOoBean
// @requirement FUNC.PER/0.2 // @requirement FUNC.PER/0.2
/** @internal /** @internal
* @deprecated
*/ */
@Deprecated
public void readExternal( java.io.ObjectInput aObjIn ) public void readExternal( java.io.ObjectInput aObjIn )
{ {
// TBD // TBD
@ -1312,9 +1312,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
setLayout(new java.awt.BorderLayout()); setLayout(new java.awt.BorderLayout());
} }
/** @Deprecated
@deprecated
*/
@Override @Override
public void paint( java.awt.Graphics aGraphics ) public void paint( java.awt.Graphics aGraphics )
{ {

View File

@ -26,9 +26,8 @@ import com.sun.star.uno.XComponentContext;
/** /**
* This abstract class represents a connection to the office * This abstract class represents a connection to the office
* application. * application.
@deprecated
*/ */
@Deprecated
public interface OfficeConnection public interface OfficeConnection
extends XComponent extends XComponent
{ {

View File

@ -26,9 +26,8 @@ import com.sun.star.awt.XWindowPeer;
* The concrete implementation of the OfficeWindow extends an * The concrete implementation of the OfficeWindow extends an
* appropriate type of visual component (java.awt.Canvas for local * appropriate type of visual component (java.awt.Canvas for local
* and java.awt.Container for remote). * and java.awt.Container for remote).
@deprecated
*/ */
@Deprecated
public interface OfficeWindow public interface OfficeWindow
{ {
/** /**

View File

@ -114,8 +114,8 @@ public class MethodThread extends Thread
/** /**
* Stop the running method. * Stop the running method.
* @deprecated
*/ */
@Deprecated
@Override @Override
public void destroy() public void destroy()
{ {

View File

@ -49,7 +49,6 @@ public class _XTasksSupplier extends MultiMethodTest {
/** /**
* DEPRECATED. <p> * DEPRECATED. <p>
* Has <b> OK </b> status. * Has <b> OK </b> status.
* @deprecated
*/ */
@Deprecated @Deprecated
public void _getTasks() { public void _getTasks() {

View File

@ -20,9 +20,8 @@ package com.sun.star.uno;
/** /**
* Deprecated, UNOIDL does not have a union concept. * Deprecated, UNOIDL does not have a union concept.
*
* @deprecated
*/ */
@Deprecated
public class Union { public class Union {
/** /**
* Get the value in the union. * Get the value in the union.

View File

@ -101,9 +101,7 @@ public class UCB
executeCommand(ucb, "globalTransfer", copyArg(sourceDir,filename, targetDir,targetName)); executeCommand(ucb, "globalTransfer", copyArg(sourceDir,filename, targetDir,targetName));
} }
/** @Deprecated
* @deprecated
*/
public void copy(String sourceDir, String filename, String targetDir) throws Exception public void copy(String sourceDir, String filename, String targetDir) throws Exception
{ {
copy(sourceDir,filename, targetDir, PropertyNames.EMPTY_STRING); copy(sourceDir,filename, targetDir, PropertyNames.EMPTY_STRING);