odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java | 4 ++-- odk/examples/DevelopersGuide/Forms/ControlValidator.java | 2 +- odk/examples/DevelopersGuide/Forms/RowSet.java | 2 +- odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java | 4 ++-- odk/examples/DevelopersGuide/Forms/WaitForInput.java | 2 +- odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-)
New commits: commit 8a73c5725f0ef0494e0a933cbfc22a8f04328ddd Author: Ilmari Lauhakangas <ilmari.lauhakan...@libreoffice.org> AuthorDate: Sun May 12 20:34:09 2024 +0300 Commit: Noel Grandin <noel.gran...@collabora.co.uk> CommitDate: Mon May 13 14:44:47 2024 +0200 odk: classes in java.lang package do not need to be fully qualified Change-Id: Idcc8af34095496aa6e7f516d9b2b975f7e58799f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167555 Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk> Tested-by: Jenkins diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java index 9b55929d870a..c47244b9abbb 100644 --- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java +++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java @@ -198,7 +198,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob ++c; aDeactivation = new com.sun.star.beans.NamedValue(); aDeactivation.Name = "Deactivate"; - aDeactivation.Value = java.lang.Boolean.TRUE; + aDeactivation.Value = Boolean.TRUE; } // Sending of result events is useful inside DISPATCH environment only @@ -284,7 +284,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob xInfoBox.setMessageText(sMessage); xInfoBox.execute(); } - catch(java.lang.Throwable exIgnore) + catch(Throwable exIgnore) { // ignore any problem, which can occur here. // It's not really a bug for this example job, if diff --git a/odk/examples/DevelopersGuide/Forms/ControlValidator.java b/odk/examples/DevelopersGuide/Forms/ControlValidator.java index c29dec5585ee..c7afdf369aa7 100644 --- a/odk/examples/DevelopersGuide/Forms/ControlValidator.java +++ b/odk/examples/DevelopersGuide/Forms/ControlValidator.java @@ -42,7 +42,7 @@ public abstract class ControlValidator implements com.sun.star.form.validation.X return ( com.sun.star.uno.AnyConverter.getType(Value).getTypeClass() == com.sun.star.uno.TypeClass.VOID ); } - catch( java.lang.ClassCastException e ) + catch( ClassCastException e ) { } return false; diff --git a/odk/examples/DevelopersGuide/Forms/RowSet.java b/odk/examples/DevelopersGuide/Forms/RowSet.java index 93e62cacf088..37eacaefff0c 100644 --- a/odk/examples/DevelopersGuide/Forms/RowSet.java +++ b/odk/examples/DevelopersGuide/Forms/RowSet.java @@ -58,7 +58,7 @@ public class RowSet implements XRowSet, XRow catch ( Exception e ) { e.printStackTrace(System.err); - throw new java.lang.InstantiationError(); + throw new InstantiationError(); } } diff --git a/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java b/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java index 23a9e4226231..c1464c4b1ae3 100644 --- a/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java +++ b/odk/examples/DevelopersGuide/Forms/TableCellTextBinding.java @@ -37,7 +37,7 @@ import com.sun.star.text.XTextRange; content to other interested parties. */ public class TableCellTextBinding - extends java.lang.Thread + extends Thread implements com.sun.star.form.binding.XValueBinding, com.sun.star.util.XModifyBroadcaster { @@ -95,7 +95,7 @@ public class TableCellTextBinding { text = (String)obj; } - catch( java.lang.ClassCastException e ) + catch( ClassCastException e ) { throw new com.sun.star.form.binding.IncompatibleTypesException(); } diff --git a/odk/examples/DevelopersGuide/Forms/WaitForInput.java b/odk/examples/DevelopersGuide/Forms/WaitForInput.java index e5891ada4afd..b05544f1fb4f 100644 --- a/odk/examples/DevelopersGuide/Forms/WaitForInput.java +++ b/odk/examples/DevelopersGuide/Forms/WaitForInput.java @@ -16,7 +16,7 @@ * except in compliance with the License. You may obtain a copy of * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ -class WaitForInput extends java.lang.Thread +class WaitForInput extends Thread { private Object m_aToNotify; private boolean m_bDone; diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java index 25281ac5f3ba..96f8a81751eb 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/JavaWindowPeerFake.java @@ -53,7 +53,7 @@ class JavaWindowPeerFake implements com.sun.star.awt.XSystemDependentWindowPeer, * Implementation of XSystemDependentWindowPeer (that's all we really need). * This method is called back from the Office toolkit to retrieve the system data. */ - public java.lang.Object getWindowHandle(byte[] aProcessId, short aSystem) + public Object getWindowHandle(byte[] aProcessId, short aSystem) throws com.sun.star.uno.RuntimeException { Object aReturn = null;