diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-05 14:53:35 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-05 14:55:16 +0200 |
commit | 3f50c6e050ea922cb720ec88a9f38c991b1906cd (patch) | |
tree | 3142aef5dcdb47f4de7b1dab7efa855ce391a477 /framework | |
parent | b73db446ac9681fdfc4ad602c6da7ce3e36a8588 (diff) |
java: remove ((unnecessary)) parentheses
Change-Id: I39fbe3a260c8dbfc203662c54eec4db064b88195
Diffstat (limited to 'framework')
4 files changed, 15 insertions, 15 deletions
diff --git a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java index a5226e0e4199..d8d1c06779fc 100644 --- a/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java +++ b/framework/qa/complex/accelerators/AcceleratorsConfigurationTest.java @@ -767,7 +767,7 @@ public class AcceleratorsConfigurationTest private XMultiServiceFactory getMSF() { - return(UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager())); + return UnoRuntime.queryInterface(XMultiServiceFactory.class, connection.getComponentContext().getServiceManager()); } // setup and close connections diff --git a/framework/qa/complex/accelerators/KeyMapping.java b/framework/qa/complex/accelerators/KeyMapping.java index 79e562a39a0b..fd3637ba2a13 100644 --- a/framework/qa/complex/accelerators/KeyMapping.java +++ b/framework/qa/complex/accelerators/KeyMapping.java @@ -133,7 +133,7 @@ public class KeyMapping public short mapIdentifier2Code(String sIdentifier) { - return (aIdentifierHashMap.get(sIdentifier)).shortValue(); + return aIdentifierHashMap.get(sIdentifier).shortValue(); } public String mapCode2Identifier(short nCode) diff --git a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java index fa3a999ad25c..2a37129d8280 100644 --- a/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java +++ b/framework/qa/complex/contextMenuInterceptor/ContextMenuInterceptor.java @@ -61,9 +61,9 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor UnoRuntime.queryInterface(com.sun.star.container.XIndexContainer.class, xMenuElementFactory.createInstance("com.sun.star.ui.ActionTriggerContainer")); // intialize root menu entry "Help" - xRootMenuEntry.setPropertyValue("Text", ("Help")); - xRootMenuEntry.setPropertyValue("CommandURL", ("slot:5410")); - xRootMenuEntry.setPropertyValue("HelpURL", ("5410")); + xRootMenuEntry.setPropertyValue("Text", "Help"); + xRootMenuEntry.setPropertyValue("CommandURL", "slot:5410"); + xRootMenuEntry.setPropertyValue("HelpURL", "5410"); xRootMenuEntry.setPropertyValue("SubContainer", xSubMenuContainer); xRootMenuEntry.setPropertyValue("Image", myBitmap); @@ -71,9 +71,9 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor // intialize help/content menu entry // entry "Content" XPropertySet xMenuEntry = UnoRuntime.queryInterface(XPropertySet.class, xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger")); - xMenuEntry.setPropertyValue("Text", ("Content")); - xMenuEntry.setPropertyValue("CommandURL", ("slot:5401")); - xMenuEntry.setPropertyValue("HelpURL", ("5401")); + xMenuEntry.setPropertyValue("Text", "Content"); + xMenuEntry.setPropertyValue("CommandURL", "slot:5401"); + xMenuEntry.setPropertyValue("HelpURL", "5401"); // insert menu entry to sub menu xSubMenuContainer.insertByIndex(0, xMenuEntry); @@ -81,18 +81,18 @@ public class ContextMenuInterceptor implements XContextMenuInterceptor // intialize help/help agent // entry "Help Agent" xMenuEntry = UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger")); - xMenuEntry.setPropertyValue("Text", ("Help Agent")); - xMenuEntry.setPropertyValue("CommandURL", ("slot:5962")); - xMenuEntry.setPropertyValue("HelpURL", ("5962")); + xMenuEntry.setPropertyValue("Text", "Help Agent"); + xMenuEntry.setPropertyValue("CommandURL", "slot:5962"); + xMenuEntry.setPropertyValue("HelpURL", "5962"); // insert menu entry to sub menu xSubMenuContainer.insertByIndex(1, xMenuEntry); // intialize help/tips // entry "Tips" xMenuEntry = UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, xMenuElementFactory.createInstance("com.sun.star.ui.ActionTrigger")); - xMenuEntry.setPropertyValue("Text", ("Tips")); - xMenuEntry.setPropertyValue("CommandURL", ("slot:5404")); - xMenuEntry.setPropertyValue("HelpURL", ("5404")); + xMenuEntry.setPropertyValue("Text", "Tips"); + xMenuEntry.setPropertyValue("CommandURL", "slot:5404"); + xMenuEntry.setPropertyValue("HelpURL", "5404"); // insert menu entry to sub menu xSubMenuContainer.insertByIndex(2, xMenuEntry); diff --git a/framework/qa/complex/dispatches/Interceptor.java b/framework/qa/complex/dispatches/Interceptor.java index 44ba2a2a9da0..40e8f2411727 100644 --- a/framework/qa/complex/dispatches/Interceptor.java +++ b/framework/qa/complex/dispatches/Interceptor.java @@ -304,6 +304,6 @@ public class Interceptor implements XDispatch, private boolean impl_match(String sVal1, String sVal2) { // TODO implement wildcard match - return (sVal1.equals(sVal2)); + return sVal1.equals(sVal2); } } |