From 56ef5533fc1bce2134721ae64d4d6c18a3526a7a Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 19 Aug 2014 14:18:44 +0200 Subject: java: classes in java.lang package do not need to be fully qualified Change-Id: I7b18f62336c3a8ca4c538b30ce04c99f202a4756 --- .../DevelopersGuide/Charts/CalcHelper.java | 2 +- .../DevelopersGuide/Charts/ChartInDraw.java | 12 ++++----- .../Components/Addons/JobsAddon/AsyncJob.java | 30 +++++++++++----------- .../DevelopersGuide/Forms/NumericValidator.java | 2 +- .../DesktopEnvironment/CustomizeView.java | 1 - .../OfficeDev/DesktopEnvironment/Desk.java | 2 -- .../OfficeDev/DesktopEnvironment/StatusView.java | 1 - .../DevelopersGuide/OfficeDev/OfficeConnect.java | 3 --- .../ProfUNO/Lifetime/MyUnoObject.java | 2 +- odk/examples/java/Drawing/SDraw.java | 2 -- odk/examples/java/Inspector/UnoNode.java | 2 +- 11 files changed, 25 insertions(+), 34 deletions(-) (limited to 'odk') diff --git a/odk/examples/DevelopersGuide/Charts/CalcHelper.java b/odk/examples/DevelopersGuide/Charts/CalcHelper.java index 5d8a80061181..fa02dc398ac0 100644 --- a/odk/examples/DevelopersGuide/Charts/CalcHelper.java +++ b/odk/examples/DevelopersGuide/Charts/CalcHelper.java @@ -281,7 +281,7 @@ public class CalcHelper int nCol, nRow; double fValue; - double fFactor = 2.0 * java.lang.Math.PI / (nRowCount - 1); + double fFactor = 2.0 * Math.PI / (nRowCount - 1); String aFormula; // set variable factor for cos formula diff --git a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java index bf16e57bb40e..cf9822c9bdb8 100644 --- a/odk/examples/DevelopersGuide/Charts/ChartInDraw.java +++ b/odk/examples/DevelopersGuide/Charts/ChartInDraw.java @@ -237,18 +237,18 @@ public class ChartInDraw // rotate 10 degrees along the x axis double fAngle = 10.0; - double fCosX = java.lang.Math.cos( java.lang.Math.PI / 180.0 * fAngle ); - double fSinX = java.lang.Math.sin( java.lang.Math.PI / 180.0 * fAngle ); + double fCosX = Math.cos( Math.PI / 180.0 * fAngle ); + double fSinX = Math.sin( Math.PI / 180.0 * fAngle ); // rotate -20 degrees along the y axis fAngle = -20.0; - double fCosY = java.lang.Math.cos( java.lang.Math.PI / 180.0 * fAngle ); - double fSinY = java.lang.Math.sin( java.lang.Math.PI / 180.0 * fAngle ); + double fCosY = Math.cos( Math.PI / 180.0 * fAngle ); + double fSinY = Math.sin( Math.PI / 180.0 * fAngle ); // rotate -5 degrees along the z axis fAngle = -5.0; - double fCosZ = java.lang.Math.cos( java.lang.Math.PI / 180.0 * fAngle ); - double fSinZ = java.lang.Math.sin( java.lang.Math.PI / 180.0 * fAngle ); + double fCosZ = Math.cos( Math.PI / 180.0 * fAngle ); + double fSinZ = Math.sin( Math.PI / 180.0 * fAngle ); aMatrix.Line1.Column1 = fCosY * fCosZ; aMatrix.Line1.Column2 = fCosY * -fSinZ; diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java index c59942ce0c35..fd852f3c6fab 100644 --- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java +++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java @@ -52,13 +52,13 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob public final XComponentContext m_xCmpCtx; /** the const list of supported uno service names. */ - public static final java.lang.String[] SERVICENAMES = {"com.sun.star.task.AsyncJob"}; + public static final String[] SERVICENAMES = {"com.sun.star.task.AsyncJob"}; /** the const uno implementation name. * It must be an unique value! The best naming schema seems to use * a registered domain in reverse order ... */ - public static final java.lang.String IMPLEMENTATIONNAME = "com.sun.star.comp.framework.java.services.AsyncJob"; + public static final String IMPLEMENTATIONNAME = "com.sun.star.comp.framework.java.services.AsyncJob"; // interface @@ -122,8 +122,8 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob if (lEnvironment == null) throw new com.sun.star.lang.IllegalArgumentException("no environment"); - java.lang.String sEnvType = null; - java.lang.String sEventName = null; + String sEnvType = null; + String sEventName = null; com.sun.star.frame.XFrame xFrame = null; c = lEnvironment.length; for (int i=0; i