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 --- .../star/lib/uno/typedesc/TypeDescription_Test.java | 6 ++---- ridljar/test/com/sun/star/uno/Type_Test.java | 21 ++++++--------------- 2 files changed, 8 insertions(+), 19 deletions(-) (limited to 'ridljar/test/com/sun/star') 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()); -- cgit