Return-Path: Delivered-To: apmail-commons-commits-archive@locus.apache.org Received: (qmail 84060 invoked from network); 20 Feb 2008 21:08:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Feb 2008 21:08:45 -0000 Received: (qmail 21655 invoked by uid 500); 20 Feb 2008 21:08:38 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 21577 invoked by uid 500); 20 Feb 2008 21:08:38 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 21567 invoked by uid 99); 20 Feb 2008 21:08:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 13:08:37 -0800 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.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 21:08:13 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EBC1F1A9832; Wed, 20 Feb 2008 13:08:21 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r629613 - /commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfiguration.java Date: Wed, 20 Feb 2008 21:08:21 -0000 To: commits@commons.apache.org From: oheger@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080220210821.EBC1F1A9832@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: oheger Date: Wed Feb 20 13:08:18 2008 New Revision: 629613 URL: http://svn.apache.org/viewvc?rev=629613&view=rev Log: Added @Override annotations Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfiguration.java Modified: commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfiguration.java URL: http://svn.apache.org/viewvc/commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfiguration.java?rev=629613&r1=629612&r2=629613&view=diff ============================================================================== --- commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfiguration.java (original) +++ commons/proper/configuration/branches/configuration2_experimental/src/main/java/org/apache/commons/configuration2/HierarchicalConfiguration.java Wed Feb 20 13:08:18 2008 @@ -358,6 +358,7 @@ * @param key the key of the new property * @param obj the value of the new property */ + @Override protected void addPropertyDirect(String key, Object obj) { NodeAddData data = getExpressionEngine().prepareAdd(getRootNode(), key); @@ -466,6 +467,7 @@ * @param prefix the prefix of the keys for the subset * @return a new configuration object representing the selected subset */ + @Override @SuppressWarnings("serial") public Configuration subset(String prefix) { @@ -699,7 +701,7 @@ * value but children (either defined or undefined), this method will still * return false . * - * @param key the key to be chekced + * @param key the key to be checked * @return a flag if this key is contained in this configuration */ public boolean containsKey(String key) @@ -713,6 +715,7 @@ * @param key the key of the property to set * @param value the new value of this property */ + @Override public void setProperty(String key, Object value) { fireEvent(EVENT_SET_PROPERTY, key, value, true); @@ -776,6 +779,7 @@ * * @param key the key of the property to be removed */ + @Override public void clearProperty(String key) { fireEvent(EVENT_CLEAR_PROPERTY, key, null, true); @@ -855,6 +859,7 @@ * @return the copy * @since 1.2 */ + @Override public Object clone() { try @@ -885,6 +890,7 @@ * @return a configuration with all variables interpolated * @since 1.5 */ + @Override public Configuration interpolatedConfiguration() { HierarchicalConfiguration c = (HierarchicalConfiguration) clone(); @@ -1351,6 +1357,7 @@ * * @return a flag if iteration should be stopped */ + @Override public boolean terminate() { return isDefined(); @@ -1361,6 +1368,7 @@ * * @param node the actual node */ + @Override public void visitBeforeChildren(ConfigurationNode node) { defined = node.getValue() != null; @@ -1426,6 +1434,7 @@ * * @param node the node */ + @Override public void visitAfterChildren(ConfigurationNode node) { parentKeys.pop(); @@ -1437,6 +1446,7 @@ * * @param node the node to be visited */ + @Override public void visitBeforeChildren(ConfigurationNode node) { String parentKey = parentKeys.isEmpty() ? null : (String) parentKeys.peek(); @@ -1474,6 +1484,7 @@ * * @param node the node */ + @Override public void visitAfterChildren(ConfigurationNode node) { ConfigurationNode copy = copyStack.pop(); @@ -1488,6 +1499,7 @@ * * @param node the node */ + @Override public void visitBeforeChildren(ConfigurationNode node) { ConfigurationNode copy = (ConfigurationNode) node.clone();