[Libreoffice-commits] .: forms/qa framework/qa l10ntools/source

Julien Nabet serval2412 at kemper.freedesktop.org
Sun Aug 14 17:49:16 PDT 2011


 forms/qa/integration/forms/FormControlTest.java                      |    6 ++++--
 framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java |    3 +--
 l10ntools/source/filter/utils/FileHelper.java                        |    4 ++--
 3 files changed, 7 insertions(+), 6 deletions(-)

New commits:
commit 28f5e1b27c4150847cc4c2654c55d2881574a81a
Author: Julien Nabet <serval2412 at yahoo.fr>
Date:   Mon Aug 15 02:49:39 2011 +0200

    Some PMD cleaning

diff --git a/forms/qa/integration/forms/FormControlTest.java b/forms/qa/integration/forms/FormControlTest.java
index 7fdf68d..6c455a8 100644
--- a/forms/qa/integration/forms/FormControlTest.java
+++ b/forms/qa/integration/forms/FormControlTest.java
@@ -679,10 +679,12 @@ public class FormControlTest extends complexlib.ComplexTestCase implements XSQLE
     {
         try
         {
-            if ( fieldName.equals( "f_time" ) )
+            if ( ( "f_time" ).equals(fieldName) )
                 // http://bugs.mysql.com/bug.php?id=5681
                 return true;
-
+            if (fieldName == null) {
+                return false;
+            }
             int currentValue = ((Integer)getControlModel( fieldName ).getPropertyValue( propertyName )).intValue();
             if ( currentValue != requiredValue )
             {
diff --git a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java
index b0d89ad..4a476be 100755
--- a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java
+++ b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java
@@ -836,8 +836,7 @@ public class AcceleratorsConfigurationTest
 
     private XMultiServiceFactory getMSF()
     {
-        final XMultiServiceFactory xMSF1 = UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager());
-        return xMSF1;
+        return(UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager()));
     }
 
     // setup and close connections
diff --git a/l10ntools/source/filter/utils/FileHelper.java b/l10ntools/source/filter/utils/FileHelper.java
index 38019cf..239711c 100644
--- a/l10ntools/source/filter/utils/FileHelper.java
+++ b/l10ntools/source/filter/utils/FileHelper.java
@@ -80,8 +80,8 @@ public class FileHelper
         // => correct this problem first, otherwise office can't use these URL's
         if(
             (sFileURL                       != null ) &&
-            (sFileURL.startsWith("file:/")  == true ) &&
-            (sFileURL.startsWith("file://") == false)
+            (sFileURL.startsWith("file:/")) &&
+            (!sFileURL.startsWith("file://"))
           )
         {
             java.lang.StringBuffer sWorkBuffer = new java.lang.StringBuffer(sFileURL);


More information about the Libreoffice-commits mailing list