From 3f50c6e050ea922cb720ec88a9f38c991b1906cd Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Thu, 5 Nov 2015 14:53:35 +0200 Subject: java: remove ((unnecessary)) parentheses Change-Id: I39fbe3a260c8dbfc203662c54eec4db064b88195 --- qadevOOo/runner/complexlib/ComplexTestCase.java | 2 +- qadevOOo/runner/helper/BuildEnvTools.java | 2 +- qadevOOo/runner/util/InstCreator.java | 2 +- qadevOOo/runner/util/ValueChanger.java | 2 +- qadevOOo/runner/util/utils.java | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'qadevOOo/runner') diff --git a/qadevOOo/runner/complexlib/ComplexTestCase.java b/qadevOOo/runner/complexlib/ComplexTestCase.java index 56bc0b986198..4ece6ae2b610 100644 --- a/qadevOOo/runner/complexlib/ComplexTestCase.java +++ b/qadevOOo/runner/complexlib/ComplexTestCase.java @@ -119,7 +119,7 @@ public abstract class ComplexTestCase extends Assurance implements ComplexTest int posLeftParenthesis = entryName.indexOf('('); if (posLeftParenthesis != -1) { - String sParameter = (entryName.substring(posLeftParenthesis + 1, entryName.indexOf(')'))); + String sParameter = entryName.substring(posLeftParenthesis + 1, entryName.indexOf(')')); mTestMethodName = entryName; parameter = new String[] { sParameter }; entryName = entryName.substring(0, posLeftParenthesis); diff --git a/qadevOOo/runner/helper/BuildEnvTools.java b/qadevOOo/runner/helper/BuildEnvTools.java index 2c10aa70cad7..b967ee7f5872 100644 --- a/qadevOOo/runner/helper/BuildEnvTools.java +++ b/qadevOOo/runner/helper/BuildEnvTools.java @@ -83,7 +83,7 @@ public class BuildEnvTools { error = true; } - mCygwin = (param.getBool(PropertyName.CYGWIN)); + mCygwin = param.getBool(PropertyName.CYGWIN); if (error) { throw new ParameterNotFoundException(msg); diff --git a/qadevOOo/runner/util/InstCreator.java b/qadevOOo/runner/util/InstCreator.java index de40b07c03b1..d517f0cd1e8c 100644 --- a/qadevOOo/runner/util/InstCreator.java +++ b/qadevOOo/runner/util/InstCreator.java @@ -88,7 +88,7 @@ public class InstCreator implements XInstCreator { XFootnotesSupplier oTTS = UnoRuntime.queryInterface( XFootnotesSupplier.class, xParent ); - return( oTTS.getFootnotes() ); + return oTTS.getFootnotes(); } if ( iDsc instanceof TextSectionDsc ) { diff --git a/qadevOOo/runner/util/ValueChanger.java b/qadevOOo/runner/util/ValueChanger.java index 008b98295f8d..ec796aec5757 100644 --- a/qadevOOo/runner/util/ValueChanger.java +++ b/qadevOOo/runner/util/ValueChanger.java @@ -153,7 +153,7 @@ public class ValueChanger { com.sun.star.style.TabAlign TA1 = com.sun.star.style.TabAlign.CENTER; com.sun.star.style.TabAlign TA2 = com.sun.star.style.TabAlign.RIGHT; - if ((TSold.Alignment).equals(TA1)) + if (TSold.Alignment.equals(TA1)) TS.Alignment = TA2; else TS.Alignment = TA1; diff --git a/qadevOOo/runner/util/utils.java b/qadevOOo/runner/util/utils.java index dc019a4fcbfb..2ca7351db781 100644 --- a/qadevOOo/runner/util/utils.java +++ b/qadevOOo/runner/util/utils.java @@ -537,7 +537,7 @@ public class utils { public static boolean isVoid(Object aObject) { if (aObject instanceof com.sun.star.uno.Any) { com.sun.star.uno.Any oAny = (com.sun.star.uno.Any) aObject; - return (oAny.getType().getTypeName().equals("void")); + return oAny.getType().getTypeName().equals("void"); } else { return false; } -- cgit