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.
*
* @deprecated
*
*/
@Deprecated
public interface ContainerFactory
{
/**

View File

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

View File

@ -82,8 +82,8 @@ public class OOoBean
// @requirement FUNC.PER/0.2
/** @internal
* @deprecated
*/
@Deprecated
public void writeExternal( java.io.ObjectOutput aObjOut )
{
// TBD
@ -91,8 +91,8 @@ public class OOoBean
// @requirement FUNC.PER/0.2
/** @internal
* @deprecated
*/
@Deprecated
public void readExternal( java.io.ObjectInput aObjIn )
{
// TBD
@ -1312,9 +1312,7 @@ xLayoutManager.showElement("private:resource/menubar/menubar");
setLayout(new java.awt.BorderLayout());
}
/**
@deprecated
*/
@Deprecated
@Override
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
* application.
@deprecated
*/
@Deprecated
public interface OfficeConnection
extends XComponent
{

View File

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

View File

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

View File

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

View File

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

View File

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