Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 626 invoked from network); 30 Apr 2006 09:07:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 30 Apr 2006 09:07:09 -0000 Received: (qmail 79812 invoked by uid 500); 30 Apr 2006 09:07:06 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 79771 invoked by uid 500); 30 Apr 2006 09:07:05 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 79760 invoked by uid 99); 30 Apr 2006 09:07:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Apr 2006 02:07:05 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 30 Apr 2006 02:07:05 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9FF1C7142CC for ; Sun, 30 Apr 2006 09:06:37 +0000 (GMT) Message-ID: <6870386.1146387997652.JavaMail.jira@brutus> Date: Sun, 30 Apr 2006 09:06:37 +0000 (GMT+00:00) From: "Kent Tong (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS2-643) code without effect in InstanceDispatcher MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N code without effect in InstanceDispatcher ----------------------------------------- Key: AXIS2-643 URL: http://issues.apache.org/jira/browse/AXIS2-643 Project: Apache Axis 2.0 (Axis2) Type: Bug Components: core Versions: 1.0 Environment: Axis2 1.0 RC4 Reporter: Kent Tong Priority: Trivial In InstanceDispatcher.java, some code has no effect: public void invoke(MessageContext msgContext) throws AxisFault { ..... // setting myEPR String transportURL = (String) msgContext.getProperty(Constants.Configuration.TRANSPORT_IN_URL); if (serviceContext != null) { if (transportURL != null) { serviceContext.setMyEPR(msgContext.getTo()); } serviceContext.setMyEPR(msgContext.getTo()); } } No matter the transportURL is null or not, the result is that myEPR will be set to msgContext.getTo(). That is, the code can be simplified as: if (serviceContext != null) { serviceContext.setMyEPR(msgContext.getTo()); } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira