From 610f3388c781055fcfc3f1ea8a027b1b9cbc5bae Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 20 Aug 2014 13:48:58 +0200 Subject: java: no need to check for null before calling instanceof the instanceof check returns false when passed a null value Change-Id: I7742d0d9cf25ef23d9adee7328f701c7efeea8b5 --- javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'javaunohelper') diff --git a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java index 9ceb74d46027..62ccaa401f0c 100644 --- a/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java +++ b/javaunohelper/test/com/sun/star/lib/uno/helper/PropertySet_Test.java @@ -1603,7 +1603,7 @@ class util static boolean isVoidAny(Object obj) { boolean ret= false; - if( obj != null && obj instanceof Any) + if(obj instanceof Any) { Any a= (Any) obj; if( a.getType().getTypeClass().equals( TypeClass.INTERFACE) -- cgit