diff options
author | Noel Grandin <noel@peralex.com> | 2014-08-05 11:42:57 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-08-08 09:48:17 +0200 |
commit | 336f3b9153ff22d080530f3b4d733d1f7fd2f6bd (patch) | |
tree | a099cd9b56e7c8807ddb841f58d1bfc4a964981f /bean | |
parent | java: remove unused imports (diff) | |
download | core-336f3b9153ff22d080530f3b4d733d1f7fd2f6bd.tar.gz core-336f3b9153ff22d080530f3b4d733d1f7fd2f6bd.zip |
java: code some code to use non-deprecated constructors
Change-Id: I4194a3dfd361d1955cf5bb4fab915150eecfa21a
Diffstat (limited to 'bean')
-rw-r--r-- | bean/com/sun/star/comp/beans/LocalOfficeConnection.java | 2 | ||||
-rw-r--r-- | bean/qa/complex/bean/OOoBeanTest.java | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java index 7c291072d46e..c06dd2daba31 100644 --- a/bean/com/sun/star/comp/beans/LocalOfficeConnection.java +++ b/bean/com/sun/star/comp/beans/LocalOfficeConnection.java @@ -193,6 +193,7 @@ public class LocalOfficeConnection * @param containerFactory This is a application provided AWT container * factory. */ + @Deprecated public void setContainerFactory(ContainerFactory containerFactory) { } @@ -221,6 +222,7 @@ public class LocalOfficeConnection * @param container This is an AWT container. * @return The office window instance. */ + @Deprecated public OfficeWindow createOfficeWindow(Container container) { return new LocalOfficeWindow(this); diff --git a/bean/qa/complex/bean/OOoBeanTest.java b/bean/qa/complex/bean/OOoBeanTest.java index d223fb74a9be..9fecfedc007a 100644 --- a/bean/qa/complex/bean/OOoBeanTest.java +++ b/bean/qa/complex/bean/OOoBeanTest.java @@ -19,6 +19,7 @@ package complex.bean; import java.awt.event.*; + import com.sun.star.comp.beans.OOoBean; import com.sun.star.uno.UnoRuntime; @@ -28,6 +29,7 @@ import org.junit.AfterClass; import org.junit.BeforeClass; import org.junit.Test; import org.openoffice.test.OfficeConnection; + import static org.junit.Assert.*; class PrivateLocalOfficeConnection extends com.sun.star.comp.beans.LocalOfficeConnection @@ -38,6 +40,7 @@ class PrivateLocalOfficeConnection extends com.sun.star.comp.beans.LocalOfficeCo } } +@Deprecated public class OOoBeanTest { |