From 6f0c2e375e7b0322515cd29a4de2e236fe9884ee Mon Sep 17 00:00:00 2001 From: Tomasz Zarna Date: Tue, 18 Jun 2013 23:10:14 +0200 Subject: fix equals(Object) calls on two references of different class types Change-Id: I5db9ba23d9631c02e1e930517c5baa1513295814 --- .../mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java index af2d235a7..da997ac99 100644 --- a/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java +++ b/org.eclipse.mylyn.bugzilla.core/src/org/eclipse/mylyn/internal/bugzilla/core/service/BugzillaXmlRpcClient.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010 Frank Becker and others. + * Copyright (c) 2010, 2013 Frank Becker and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -851,11 +851,11 @@ public class BugzillaXmlRpcClient extends CommonXmlRpcClient { attachmentMapper.setDeltaDate(lastChangeTime); attachmentMapper.setContentType(content_type); attachmentMapper.setCreationDate(creation_time); - attachmentMapper.setDeprecated(is_obsolete.equals("1")); //$NON-NLS-1$ + attachmentMapper.setDeprecated(is_obsolete.equals(Integer.valueOf(1))); attachmentMapper.setDescription(summary); attachmentMapper.setFileName(file_name); attachmentMapper.setLength(size != null ? size : -1L); - attachmentMapper.setPatch(is_patch.equals("1")); //$NON-NLS-1$ + attachmentMapper.setPatch(is_patch.equals(Integer.valueOf(1))); attachmentMapper.applyTo(attachmentAttribute); addFlags(taskData, attachment.get("flags"), attachmentAttribute); //$NON-NLS-1$ -- cgit v1.2.1