From cf4e20ede906dd7aaab5251083041185c4b35a9e Mon Sep 17 00:00:00 2001 From: Julien Nabet Date: Mon, 15 Aug 2011 01:58:04 +0200 Subject: Some PMD cleaning --- bean/com/sun/star/beans/LocalOfficeConnection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bean/com/sun') diff --git a/bean/com/sun/star/beans/LocalOfficeConnection.java b/bean/com/sun/star/beans/LocalOfficeConnection.java index 11283066cc34..fc098c381a15 100644 --- a/bean/com/sun/star/beans/LocalOfficeConnection.java +++ b/bean/com/sun/star/beans/LocalOfficeConnection.java @@ -179,7 +179,7 @@ public class LocalOfficeConnection public void dispose() { Iterator itr = mComponents.iterator(); - while (itr.hasNext() == true) { + while (itr.hasNext()) { // ignore runtime exceptions in dispose try { ((XEventListener)itr.next()).disposing(null); } catch ( RuntimeException aExc ) {} @@ -462,12 +462,12 @@ public class LocalOfficeConnection case ';': idx -= 1; // put back the last read character state = 5; - if (name.equals("path")) { + if (("path").equals(name)) { if (path == null) path = buffer.toString(); else state = -3; // error: more then one 'path' - } else if (name.equals("pipe")) { + } else if (("pipe").equals(name)) { if (pipe == null) pipe = buffer.toString(); else -- cgit