Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD92417AA2 for ; Sun, 6 Sep 2015 18:45:05 +0000 (UTC) Received: (qmail 47807 invoked by uid 500); 6 Sep 2015 18:45:05 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 47768 invoked by uid 500); 6 Sep 2015 18:45:05 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 47757 invoked by uid 500); 6 Sep 2015 18:45:05 -0000 Received: (qmail 47754 invoked by uid 99); 6 Sep 2015 18:45:05 -0000 Received: from eris.apache.org (HELO hades.apache.org) (140.211.11.105) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Sep 2015 18:45:05 +0000 Received: from hades.apache.org (localhost [127.0.0.1]) by hades.apache.org (ASF Mail Server at hades.apache.org) with ESMTP id 9E8F0AC009A for ; Sun, 6 Sep 2015 18:45:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r1701510 - /db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java Date: Sun, 06 Sep 2015 18:45:05 -0000 To: torque-commits@db.apache.org From: tfischer@apache.org X-Mailer: svnmailer-1.0.9 Message-Id: <20150906184505.9E8F0AC009A@hades.apache.org> Author: tfischer Date: Sun Sep 6 18:45:05 2015 New Revision: 1701510 URL: http://svn.apache.org/r1701510 Log: improve javadoc, add final modifier Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java Modified: db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java URL: http://svn.apache.org/viewvc/db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java?rev=1701510&r1=1701509&r2=1701510&view=diff ============================================================================== --- db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java (original) +++ db/torque/torque4/trunk/torque-runtime/src/main/java/org/apache/torque/criteria/PreparedStatementPart.java Sun Sep 6 18:45:05 2015 @@ -28,7 +28,7 @@ import org.apache.commons.lang.StringUti import org.apache.commons.lang.builder.EqualsBuilder; import org.apache.commons.lang.builder.HashCodeBuilder; /** - * The rendered SQL for a part of a prepared statement. + * The rendered SQL for a part of a prepared statement, including replacements for ? placeholders. * * @version $Id$ */ @@ -64,8 +64,8 @@ public class PreparedStatementPart imple * to start with, or null. */ public PreparedStatementPart( - String sql, - Object... preparedStatementReplacements) + final String sql, + final Object... preparedStatementReplacements) { if (!StringUtils.isEmpty(sql)) { @@ -115,7 +115,7 @@ public class PreparedStatementPart imple * * @return this PreparedStatementPart (with toAppend appended). */ - public PreparedStatementPart append(PreparedStatementPart toAppend) + public PreparedStatementPart append(final PreparedStatementPart toAppend) { sql.append(toAppend.sql); preparedStatementReplacements.addAll( @@ -130,7 +130,7 @@ public class PreparedStatementPart imple * * @return this PreparedStatementPart (with toAppend appended). */ - public PreparedStatementPart append(SqlEnum toAppend) + public PreparedStatementPart append(final SqlEnum toAppend) { sql.append(toAppend); return this; @@ -146,7 +146,7 @@ public class PreparedStatementPart imple } @Override - public boolean equals(Object obj) + public boolean equals(final Object obj) { if (this == obj) { --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org