diff options
-rw-r--r-- | jurt/com/sun/star/uno/AnyConverter.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/base/java_fat.java | 2 | ||||
-rw-r--r-- | qadevOOo/runner/stats/SQLExecution.java | 2 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.java | 2 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/util/_XChangesBatch.java | 10 | ||||
-rw-r--r-- | qadevOOo/tests/java/ifc/util/_XChangesNotifier.java | 12 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java | 1 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java | 3 | ||||
-rw-r--r-- | qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java | 3 | ||||
-rw-r--r-- | sc/qa/complex/calcPreview/ViewForwarder.java | 5 | ||||
-rw-r--r-- | ucb/qa/complex/tdoc/_XCommandProcessor.java | 23 |
11 files changed, 23 insertions, 42 deletions
diff --git a/jurt/com/sun/star/uno/AnyConverter.java b/jurt/com/sun/star/uno/AnyConverter.java index 4e741ba258ec..873deb157da2 100644 --- a/jurt/com/sun/star/uno/AnyConverter.java +++ b/jurt/com/sun/star/uno/AnyConverter.java @@ -621,7 +621,7 @@ public class AnyConverter break; case TypeClass.ENUM_value: if (tc == TypeClass.ENUM_value && - (null == destTClass || destType.equals( type ) /* optional destType */)) + (destType.equals( type ) /* optional destType */)) { return object; } diff --git a/qadevOOo/runner/base/java_fat.java b/qadevOOo/runner/base/java_fat.java index 9e5efaebe494..04f159a4336a 100644 --- a/qadevOOo/runner/base/java_fat.java +++ b/qadevOOo/runner/base/java_fat.java @@ -181,7 +181,7 @@ public class java_fat implements TestBase aSubEntry.UserDefinedParams = m_aParams; aSubEntry.Logger = ifclog; - if ((tEnv == null) || tEnv.isDisposed()) + if (tEnv.isDisposed()) { closeExistingOffice(); tEnv = getEnv(entry, m_aParams); diff --git a/qadevOOo/runner/stats/SQLExecution.java b/qadevOOo/runner/stats/SQLExecution.java index e65ac26d3f12..1401156e6d82 100644 --- a/qadevOOo/runner/stats/SQLExecution.java +++ b/qadevOOo/runner/stats/SQLExecution.java @@ -242,8 +242,6 @@ public class SQLExecution { } } } - if (!update && sqlOutput == null) - return false; return true; } diff --git a/qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.java b/qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.java index de87ca91e436..c5ca5ea5f8d2 100644 --- a/qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.java +++ b/qadevOOo/tests/java/ifc/sheet/_XCellRangeReferrer.java @@ -60,13 +60,13 @@ public class _XCellRangeReferrer extends MultiMethodTest { ("Relation 'DATAAREA' not found")); XCellRange cr = oObj.getReferredCells(); - log.println(cr.toString()); if (cr == null) { log.println("getReferredCells returned NULL."); tRes.tested("getReferredCells()", false); return; } + log.println(cr.toString()); XCellRangeAddressable xCRA = UnoRuntime.queryInterface(XCellRangeAddressable.class, cr); diff --git a/qadevOOo/tests/java/ifc/util/_XChangesBatch.java b/qadevOOo/tests/java/ifc/util/_XChangesBatch.java index 759304e0db69..e46cc034ca1f 100644 --- a/qadevOOo/tests/java/ifc/util/_XChangesBatch.java +++ b/qadevOOo/tests/java/ifc/util/_XChangesBatch.java @@ -66,11 +66,11 @@ public class _XChangesBatch extends MultiMethodTest { if (changeElement == null || originalElement == null || elementName == null || (xProp == null && xNameReplace == null)) { log.println( - changeElement == null?"Missing property 'XChangesBatch.ChangeElement'\n":"" + - originalElement == null?"Missing property 'XChangesBatch.OriginalElement'\n":"" + - elementName == null?"Missing property 'XChangesBatch.PropertyName'\n":"" + - xProp == null?"Missing property 'XChangesBatch.PropertySet'":"" + - xNameReplace == null?"Missing property 'XChangesBatch.NameReplace'":"" + (changeElement == null?"Missing property 'XChangesBatch.ChangeElement'\n":"") + + (originalElement == null?"Missing property 'XChangesBatch.OriginalElement'\n":"") + + (elementName == null?"Missing property 'XChangesBatch.PropertyName'\n":"") + + (xProp == null?"Missing property 'XChangesBatch.PropertySet'":"") + + (xNameReplace == null?"Missing property 'XChangesBatch.NameReplace'":"") ); throw new StatusException("Some needed object relations are missing.", new Exception()); } diff --git a/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java b/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java index cf358959cc8b..263cc2e2c2eb 100644 --- a/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java +++ b/qadevOOo/tests/java/ifc/util/_XChangesNotifier.java @@ -112,12 +112,12 @@ public class _XChangesNotifier extends MultiMethodTest { if (changeElement == null || originalElement == null || elementName == null || (xProp == null && xNameReplace == null) || xBatch == null) { log.println( - changeElement == null?"Missing property 'XChangesNotifier.ChangeElement'\n":"" + - originalElement == null?"Missing property 'XChangesNotifier.OriginalElement'\n":"" + - elementName == null?"Missing property 'XChangesNotifier.PropertyName'\n":"" + - xProp == null?"Missing property 'XChangesNotifier.PropertySet'":"" + - xNameReplace == null?"Missing property 'XChangesNotifier.NameReplace'":"" + - xBatch == null?"Missing property 'XChangesNotifier.ChangesBatch'":"" + (changeElement == null?"Missing property 'XChangesNotifier.ChangeElement'\n":"") + + (originalElement == null?"Missing property 'XChangesNotifier.OriginalElement'\n":"") + + (elementName == null?"Missing property 'XChangesNotifier.PropertyName'\n":"") + + (xProp == null?"Missing property 'XChangesNotifier.PropertySet'":"") + + (xNameReplace == null?"Missing property 'XChangesNotifier.NameReplace'":"") + + (xBatch == null?"Missing property 'XChangesNotifier.ChangesBatch'":"") ); throw new StatusException("Some needed object relations are missing.", new Exception()); } diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java index 908f5b4cbafb..9646f703f874 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotTableObj.java @@ -155,7 +155,6 @@ public class ScDataPilotTableObj extends TestCase { e.printStackTrace(log); throw new StatusException( "Couldn't get a spreadsheet", e); } - log.println("Getting sheet - " + (oSheet == null ? "FAILED" : "OK")); try { log.println("Filing a table"); for (int i = 1; i < 6; i++) { diff --git a/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java b/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java index 4112e448f164..69350766e446 100644 --- a/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java +++ b/qadevOOo/tests/java/mod/_sc/ScDataPilotTablesObj.java @@ -166,9 +166,6 @@ public class ScDataPilotTablesObj extends TestCase { oObj = DPT; - log.println("Creating object - " + - ((oObj == null) ? "FAILED" : "OK")); - TestEnvironment tEnv = new TestEnvironment( oObj ); // Other parameters required for interface tests diff --git a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java index 0e893f86ac01..e204bfa45a3a 100644 --- a/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java +++ b/qadevOOo/tests/java/mod/_sc/ScIndexEnumeration_DataPilotTablesEnumeration.java @@ -131,9 +131,6 @@ public class ScIndexEnumeration_DataPilotTablesEnumeration extends TestCase { oObj = DPT; - log.println("Creating object - " + - ((oObj == null) ? "FAILED" : "OK")); - XEnumerationAccess ea = UnoRuntime.queryInterface(XEnumerationAccess.class,oObj); oObj = ea.createEnumeration(); diff --git a/sc/qa/complex/calcPreview/ViewForwarder.java b/sc/qa/complex/calcPreview/ViewForwarder.java index eee6d1c47ce0..b516c9fbcac0 100644 --- a/sc/qa/complex/calcPreview/ViewForwarder.java +++ b/sc/qa/complex/calcPreview/ViewForwarder.java @@ -948,11 +948,6 @@ public class ViewForwarder { System.out.println("While waiting :" + e) ; } - if (xComp == null) { - fail("loading document failed."); - return; - } - xSpreadsheetDoc = UnoRuntime.queryInterface( XSpreadsheetDocument.class, xComp); XModel aModel = diff --git a/ucb/qa/complex/tdoc/_XCommandProcessor.java b/ucb/qa/complex/tdoc/_XCommandProcessor.java index 95fe749ae717..6afe124e2f28 100644 --- a/ucb/qa/complex/tdoc/_XCommandProcessor.java +++ b/ucb/qa/complex/tdoc/_XCommandProcessor.java @@ -209,26 +209,21 @@ public class _XCommandProcessor { * </ul> */ public boolean _abort() { - //executeMethod("createCommandIdentifier()"); -// Command command = null;//(Command)tEnv.getObjRelation( - //"XCommandProcessor.AbortCommand"); Command command = new Command("getCommandInfo", -1, null); - if (command == null) { - String commandName = "globalTransfer"; + String commandName = "globalTransfer"; - String srcURL = util.utils.getFullTestURL("solibrary.jar") ; - String tmpURL = util.utils.getOfficeTemp(xMSF) ; - log.println("Copying '" + srcURL + "' to '" + tmpURL) ; + String srcURL = util.utils.getFullTestURL("solibrary.jar") ; + String tmpURL = util.utils.getOfficeTemp(xMSF) ; + log.println("Copying '" + srcURL + "' to '" + tmpURL) ; - GlobalTransferCommandArgument arg = new - GlobalTransferCommandArgument( - TransferCommandOperation.COPY, srcURL, - tmpURL, "", NameClash.OVERWRITE); + GlobalTransferCommandArgument arg = new + GlobalTransferCommandArgument( + TransferCommandOperation.COPY, srcURL, + tmpURL, "", NameClash.OVERWRITE); - command = new Command(commandName, -1, arg); - } + command = new Command(commandName, -1, arg); Thread aborter = new Thread() { public void run() { |