Return-Path: Delivered-To: apmail-click-commits-archive@www.apache.org Received: (qmail 8796 invoked from network); 9 Jul 2010 04:20:03 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 9 Jul 2010 04:20:03 -0000 Received: (qmail 66198 invoked by uid 500); 9 Jul 2010 04:20:02 -0000 Delivered-To: apmail-click-commits-archive@click.apache.org Received: (qmail 65806 invoked by uid 500); 9 Jul 2010 04:20:01 -0000 Mailing-List: contact commits-help@click.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: click-dev@click.apache.org Delivered-To: mailing list commits@click.apache.org Received: (qmail 65124 invoked by uid 99); 9 Jul 2010 04:20:00 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 04:20:00 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Jul 2010 04:19:58 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EECED2388A1C; Fri, 9 Jul 2010 04:18:34 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r962397 - /click/trunk/click/framework/src/org/apache/click/Partial.java Date: Fri, 09 Jul 2010 04:18:34 -0000 To: commits@click.apache.org From: sabob@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100709041834.EECED2388A1C@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: sabob Date: Fri Jul 9 04:18:34 2010 New Revision: 962397 URL: http://svn.apache.org/viewvc?rev=962397&view=rev Log: Partial.getContentType should default to TEXT Modified: click/trunk/click/framework/src/org/apache/click/Partial.java Modified: click/trunk/click/framework/src/org/apache/click/Partial.java URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/Partial.java?rev=962397&r1=962396&r2=962397&view=diff ============================================================================== --- click/trunk/click/framework/src/org/apache/click/Partial.java (original) +++ click/trunk/click/framework/src/org/apache/click/Partial.java Fri Jul 9 04:18:34 2010 @@ -342,12 +342,14 @@ public class Partial { } /** - * Return the partial content type. If no content type is specified it will - * default to {@value #TEXT}. + * Return the partial content type, default is {@value #TEXT}. * * @return the response content type */ public String getContentType() { + if (contentType == null) { + contentType = TEXT; + } return contentType; } @@ -559,9 +561,6 @@ public class Partial { } String contentType = getContentType(); - if (contentType == null) { - contentType = TEXT; - } if (getCharacterEncoding() == null) {