diff options
author | Noel Grandin <noel@peralex.com> | 2015-02-11 13:20:49 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-02-23 09:26:58 +0200 |
commit | ba233e87efddf0a6751b35784dca1c805364ff3b (patch) | |
tree | 9d7c8a4256e688c2d47cb6ecf580ac196c4da2c0 /xmerge | |
parent | a2fa9e2468aa5c4fd4b610c5d0ebc8959e87a072 (diff) |
remove unnecessary parenthesis in return statements
found with
$ git grep -lP 'return\s*\(\s*\w+\s*\)\s*;'
Change-Id: Ic51606877a9edcadeb647c5bf17bc928b69ab60e
Diffstat (limited to 'xmerge')
-rw-r--r-- | xmerge/source/bridge/java/XMergeBridge.java | 10 | ||||
-rw-r--r-- | xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java | 6 |
2 files changed, 8 insertions, 8 deletions
diff --git a/xmerge/source/bridge/java/XMergeBridge.java b/xmerge/source/bridge/java/XMergeBridge.java index 414fe37f7351..dab0ecee30ac 100644 --- a/xmerge/source/bridge/java/XMergeBridge.java +++ b/xmerge/source/bridge/java/XMergeBridge.java @@ -111,7 +111,7 @@ public class XMergeBridge { } - return( typeReturn ); + return typeReturn; } private String getFileName(String origName) @@ -538,21 +538,21 @@ public class XMergeBridge { // Implement method from interface XServiceName public String getServiceName() { - return( __serviceName ); + return __serviceName; } // Implement methods from interface XServiceInfo public boolean supportsService(String stringServiceName) { - return( stringServiceName.equals( __serviceName ) ); + return stringServiceName.equals( __serviceName ); } public String getImplementationName() { - return( _XMergeBridge.class.getName() ); + return _XMergeBridge.class.getName(); } public String[] getSupportedServiceNames() { String[] stringSupportedServiceNames = { __serviceName }; - return( stringSupportedServiceNames ); + return stringSupportedServiceNames; } } diff --git a/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java b/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java index 8641417b1cf7..d8f276bc3610 100644 --- a/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java +++ b/xmerge/source/xmerge/java/org/openoffice/xmerge/ConvertData.java @@ -87,7 +87,7 @@ public class ConvertData { */ public Iterator<Object> getDocumentEnumeration() { Iterator<Object> enumerate = v.iterator(); - return (enumerate); + return enumerate; } /** @@ -96,6 +96,6 @@ public class ConvertData { * @return The number of {@code Document} objects currently stored. */ public int getNumDocuments() { - return (v.size()); + return v.size(); } -}
\ No newline at end of file +} |