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 /ridljar | |
parent | b73db446ac9681fdfc4ad602c6da7ce3e36a8588 (diff) |
java: remove ((unnecessary)) parentheses
Change-Id: I39fbe3a260c8dbfc203662c54eec4db064b88195
Diffstat (limited to 'ridljar')
-rw-r--r-- | ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java | 6 | ||||
-rw-r--r-- | ridljar/test/com/sun/star/uno/Type_Test.java | 21 |
2 files changed, 8 insertions, 19 deletions
diff --git a/ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java b/ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java index c110b6de4de7..1caf962fe766 100644 --- a/ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java +++ b/ridljar/test/com/sun/star/lib/uno/typedesc/TypeDescription_Test.java @@ -127,8 +127,7 @@ public final class TypeDescription_Test { @Test public void testUnsigned() throws ClassNotFoundException { assertEquals( "TypeDescription for UNSIGNED LONG", "unsigned long", - (TypeDescription.getTypeDescription(Type.UNSIGNED_LONG). - getTypeName())); + TypeDescription.getTypeDescription(Type.UNSIGNED_LONG).getTypeName()); } @Test public void testGetMethodDescription() { @@ -139,8 +138,7 @@ public final class TypeDescription_Test { @Test public void testSequence() throws ClassNotFoundException { assertEquals( "unsigned short", - (TypeDescription.getTypeDescription("[]unsigned short"). - getComponentType().getTypeName())); + TypeDescription.getTypeDescription("[]unsigned short").getComponentType().getTypeName()); } public interface XBase extends XInterface { diff --git a/ridljar/test/com/sun/star/uno/Type_Test.java b/ridljar/test/com/sun/star/uno/Type_Test.java index c80e022f3487..e81142c64ac0 100644 --- a/ridljar/test/com/sun/star/uno/Type_Test.java +++ b/ridljar/test/com/sun/star/uno/Type_Test.java @@ -49,9 +49,7 @@ public final class Type_Test { assertSame( "sequence of sequence of XComponentContext", XComponentContext[][].class, - (new Type( - "[][]com.sun.star.uno.XComponentContext", TypeClass.SEQUENCE). - getZClass())); + new Type("[][]com.sun.star.uno.XComponentContext", TypeClass.SEQUENCE).getZClass()); assertSame( "enum TypeClass", TypeClass.class, new Type("com.sun.star.uno.TypeClass", TypeClass.ENUM).getZClass()); @@ -60,27 +58,20 @@ public final class Type_Test { new Type("com.sun.star.uno.Uik", TypeClass.STRUCT).getZClass()); assertSame( "exception Exception", com.sun.star.uno.Exception.class, - (new Type("com.sun.star.uno.Exception", TypeClass.EXCEPTION). - getZClass())); + new Type("com.sun.star.uno.Exception", TypeClass.EXCEPTION).getZClass()); assertSame( "exception RuntimeException", com.sun.star.uno.RuntimeException.class, - (new Type("com.sun.star.uno.RuntimeException", TypeClass.EXCEPTION). - getZClass())); + new Type("com.sun.star.uno.RuntimeException", TypeClass.EXCEPTION).getZClass()); assertSame( "exception DeploymentException", DeploymentException.class, - (new Type( - "com.sun.star.uno.DeploymentException", TypeClass.EXCEPTION). - getZClass())); + new Type("com.sun.star.uno.DeploymentException", TypeClass.EXCEPTION).getZClass()); assertSame( "interface XInterface", XInterface.class, - (new Type("com.sun.star.uno.XInterface", TypeClass.INTERFACE). - getZClass())); + new Type("com.sun.star.uno.XInterface", TypeClass.INTERFACE).getZClass()); assertSame( "interface XComponentContext", XComponentContext.class, - (new Type( - "com.sun.star.uno.XComponentContext", TypeClass.INTERFACE). - getZClass())); + new Type("com.sun.star.uno.XComponentContext", TypeClass.INTERFACE). getZClass()); assertSame(boolean.class, new Type(boolean.class).getZClass()); assertSame(boolean.class, new Type(Boolean.class).getZClass()); |