summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-05 12:18:20 +0200
committerNoel Grandin <noel@peralex.com>2014-08-08 09:48:19 +0200
commite5bc8b60ecfca09a2014ab7090659f3428c8efa0 (patch)
tree479fea82acab2e4fe48a796706b73b69a0a938e7 /ucb
parentb58c053fed3c7e2e1e6a4195254e639976a3a809 (diff)
java: variable cannot be null
remove null check where null-analyis reveals the variable cannot be null Change-Id: Ied0a24665514bbf68c2ed5f15af9e5c2232a8033
Diffstat (limited to 'ucb')
-rw-r--r--ucb/qa/complex/tdoc/_XCommandProcessor.java23
1 files changed, 9 insertions, 14 deletions
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() {