You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2010/01/27 18:40:54 UTC
svn commit: r903754 [1/2] - in /commons/proper/digester/trunk/src:
java/org/apache/commons/digester/ java/org/apache/commons/digester/plugins/
java/org/apache/commons/digester/plugins/strategies/
java/org/apache/commons/digester/substitution/ java/org/...
Author: sebb
Date: Wed Jan 27 17:40:49 2010
New Revision: 903754
URL: http://svn.apache.org/viewvc?rev=903754&view=rev
Log:
Add missing @Override markers
Modified:
commons/proper/digester/trunk/src/java/org/apache/commons/digester/BeanPropertySetterRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallMethodRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallParamRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/Digester.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/ExtendedBaseRules.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/FactoryCreateRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/NodeCreateRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectCreateRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectParamRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/PathCallParamRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/RegexRules.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNestedPropertiesRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNextRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertiesRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertyRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetRootRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetTopRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/SimpleRegexMatcher.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginAssertionFailure.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginConfigurationException.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginCreateRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginDeclarationRule.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginException.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginInvalidInputException.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromClass.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltClass.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltMethod.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltResource.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromFile.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromMethod.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromResource.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderSetProperties.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromClass.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromStream.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderSetProperties.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/substitution/VariableSubstitutor.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterLoadingException.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterRuleParser.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/FromXmlRuleSet.java
commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/XmlLoadException.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/Address.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/AlphaBean.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/BetaBean.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/Box.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/CallMethodRuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/DigesterTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/EBRTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/Employee.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamedBean.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamespaceSnapshotTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/ObjectParamRuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/OverlappingCallMethodRuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/RegexRulesTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/RuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/RulesBaseTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertiesRuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertyRuleTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/SimpleTestBean.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestFactoryCreate.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestObjectCreationFactory.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRule.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRuleSet.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/URLTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/XIncludeTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/XMLSchemaTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/DumperRule.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestConfigurablePluginAttributes.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestDeclaration.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestDefaultPlugin.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestDelegate.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestInline.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestLocalRules.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestRecursion.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestRuleInfo.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/plugins/TestXmlRuleInfo.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/substitution/VariableExpansionTestCase.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/xmlrules/CallParamTestObject.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/xmlrules/DigesterPatternStackTest.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/xmlrules/IncludeTest.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/xmlrules/TestObject.java
commons/proper/digester/trunk/src/test/org/apache/commons/digester/xmlrules/ThrowExceptionCreationFactory.java
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/BeanPropertySetterRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/BeanPropertySetterRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/BeanPropertySetterRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/BeanPropertySetterRule.java Wed Jan 27 17:40:49 2010
@@ -132,6 +132,7 @@
* the element name otherwise
* @param text The text of the body of this element
*/
+ @Override
public void body(String namespace, String name, String text)
throws Exception {
@@ -158,6 +159,7 @@
* @exception NoSuchMethodException if the bean does not
* have a writeable property of the specified name
*/
+ @Override
public void end(String namespace, String name) throws Exception {
String property = propertyName;
@@ -205,6 +207,7 @@
/**
* Clean up after parsing is complete.
*/
+ @Override
public void finish() throws Exception {
bodyText = null;
@@ -215,6 +218,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("BeanPropertySetterRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallMethodRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallMethodRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallMethodRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallMethodRule.java Wed Jan 27 17:40:49 2010
@@ -440,6 +440,7 @@
* Set the associated digester.
* If needed, this class loads the parameter classes from their names.
*/
+ @Override
public void setDigester(Digester digester)
{
// call superclass
@@ -465,6 +466,7 @@
*
* @param attributes The attribute list for this element
*/
+ @Override
public void begin(Attributes attributes) throws Exception {
// Push an array to capture the parameter values if necessary
@@ -484,6 +486,7 @@
*
* @param bodyText The body text of this element
*/
+ @Override
public void body(String bodyText) throws Exception {
if (paramCount == 0) {
@@ -496,6 +499,7 @@
/**
* Process the end of this element.
*/
+ @Override
public void end() throws Exception {
// Retrieve or construct the parameter values array
@@ -637,6 +641,7 @@
/**
* Clean up after parsing is complete.
*/
+ @Override
public void finish() throws Exception {
bodyText = null;
@@ -656,6 +661,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("CallMethodRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallParamRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallParamRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallParamRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/CallParamRule.java Wed Jan 27 17:40:49 2010
@@ -193,6 +193,7 @@
*
* @param attributes The attribute list for this element
*/
+ @Override
public void begin(Attributes attributes) throws Exception {
Object param = null;
@@ -233,6 +234,7 @@
*
* @param bodyText The body text of this element
*/
+ @Override
public void body(String bodyText) throws Exception {
if (attributeName == null && !fromStack) {
@@ -250,6 +252,7 @@
/**
* Process any body texts now.
*/
+ @Override
public void end(String namespace, String name) {
if (bodyTextStack != null && !bodyTextStack.empty()) {
// what we do now is push one parameter onto the top set of parameters
@@ -261,6 +264,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("CallParamRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/Digester.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/Digester.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/Digester.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/Digester.java Wed Jan 27 17:40:49 2010
@@ -1203,6 +1203,7 @@
*
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void characters(char buffer[], int start, int length)
throws SAXException {
@@ -1226,6 +1227,7 @@
*
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void endDocument() throws SAXException {
if (saxLog.isDebugEnabled()) {
@@ -1268,6 +1270,7 @@
* empty string if qualified names are not available.
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void endElement(String namespaceURI, String localName,
String qName) throws SAXException {
@@ -1368,6 +1371,7 @@
*
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void endPrefixMapping(String prefix) throws SAXException {
if (saxLog.isDebugEnabled()) {
@@ -1400,6 +1404,7 @@
*
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void ignorableWhitespace(char buffer[], int start, int len)
throws SAXException {
@@ -1421,6 +1426,7 @@
*
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void processingInstruction(String target, String data)
throws SAXException {
@@ -1455,6 +1461,7 @@
*
* @param locator The new locator
*/
+ @Override
public void setDocumentLocator(Locator locator) {
if (saxLog.isDebugEnabled()) {
@@ -1473,6 +1480,7 @@
*
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void skippedEntity(String name) throws SAXException {
if (saxLog.isDebugEnabled()) {
@@ -1489,6 +1497,7 @@
*
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void startDocument() throws SAXException {
if (saxLog.isDebugEnabled()) {
@@ -1515,6 +1524,7 @@
* no attributes, it shall be an empty Attributes object.
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void startElement(String namespaceURI, String localName,
String qName, Attributes list)
throws SAXException {
@@ -1596,6 +1606,7 @@
*
* @exception SAXException if a parsing error is to be reported
*/
+ @Override
public void startPrefixMapping(String prefix, String namespaceURI)
throws SAXException {
@@ -1624,6 +1635,7 @@
* @param publicId The public identifier (if any)
* @param systemId The system identifier (if any)
*/
+ @Override
public void notationDecl(String name, String publicId, String systemId) {
if (saxLog.isDebugEnabled()) {
@@ -1642,6 +1654,7 @@
* @param systemId The system identifier (if any)
* @param notation The name of the associated notation
*/
+ @Override
public void unparsedEntityDecl(String name, String publicId,
String systemId, String notation) {
@@ -1683,6 +1696,7 @@
* @exception SAXException if a parsing exception occurs
*
*/
+ @Override
public InputSource resolveEntity(String publicId, String systemId)
throws SAXException {
@@ -1750,6 +1764,7 @@
*
* @exception SAXException if a parsing exception occurs
*/
+ @Override
public void error(SAXParseException exception) throws SAXException {
log.error("Parse Error at line " + exception.getLineNumber() +
@@ -1770,6 +1785,7 @@
*
* @exception SAXException if a parsing exception occurs
*/
+ @Override
public void fatalError(SAXParseException exception) throws SAXException {
log.error("Parse Fatal Error at line " + exception.getLineNumber() +
@@ -1790,6 +1806,7 @@
*
* @exception SAXException if a parsing exception occurs
*/
+ @Override
public void warning(SAXParseException exception) throws SAXException {
if (errorHandler != null) {
log.warn("Parse Warning Error at line " + exception.getLineNumber() +
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/ExtendedBaseRules.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/ExtendedBaseRules.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/ExtendedBaseRules.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/ExtendedBaseRules.java Wed Jan 27 17:40:49 2010
@@ -197,6 +197,7 @@
* @param pattern Nesting pattern to be matched for this Rule
* @param rule Rule instance to be registered
*/
+ @Override
public void add(String pattern, Rule rule) {
super.add(pattern, rule);
counter++;
@@ -213,6 +214,7 @@
*
* @param pattern Nesting pattern to be matched
*/
+ @Override
public List<Rule> match(String namespace, String pattern) {
// calculate the pattern of the parent
// (if the element has one)
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/FactoryCreateRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/FactoryCreateRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/FactoryCreateRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/FactoryCreateRule.java Wed Jan 27 17:40:49 2010
@@ -361,6 +361,7 @@
*
* @param attributes The attribute list of this element
*/
+ @Override
public void begin(String namespace, String name, Attributes attributes) throws Exception {
if (ignoreCreateExceptions) {
@@ -408,6 +409,7 @@
/**
* Process the end of this element.
*/
+ @Override
public void end(String namespace, String name) throws Exception {
// check if object was created
@@ -439,6 +441,7 @@
/**
* Clean up after parsing is complete.
*/
+ @Override
public void finish() throws Exception {
if (attributeName != null) {
@@ -451,6 +454,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("FactoryCreateRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/NodeCreateRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/NodeCreateRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/NodeCreateRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/NodeCreateRule.java Wed Jan 27 17:40:49 2010
@@ -206,6 +206,7 @@
* @param length the number of characters to read from the array
* @throws SAXException if the DOM implementation throws an exception
*/
+ @Override
public void characters(char[] ch, int start, int length)
throws SAXException {
@@ -221,6 +222,7 @@
* @param qName the qualified (prefixed) name
* @throws SAXException if the DOM implementation throws an exception
*/
+ @Override
public void endElement(String namespaceURI, String localName,
String qName)
throws SAXException {
@@ -253,6 +255,7 @@
* supplied
* @throws SAXException if the DOM implementation throws an exception
*/
+ @Override
public void processingInstruction(String target, String data)
throws SAXException {
@@ -275,6 +278,7 @@
* @param atts the list of attributes
* @throws SAXException if the DOM implementation throws an exception
*/
+ @Override
public void startElement(String namespaceURI, String localName,
String qName, Attributes atts)
throws SAXException {
@@ -426,6 +430,7 @@
* @param attributes The attribute list of this element
* @throws Exception indicates a JAXP configuration problem
*/
+ @Override
public void begin(String namespaceURI, String name, Attributes attributes)
throws Exception {
@@ -463,6 +468,7 @@
/**
* Pop the Node off the top of the stack.
*/
+ @Override
public void end() throws Exception {
digester.pop();
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectCreateRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectCreateRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectCreateRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectCreateRule.java Wed Jan 27 17:40:49 2010
@@ -190,6 +190,7 @@
*
* @param attributes The attribute list of this element
*/
+ @Override
public void begin(Attributes attributes) throws Exception {
// Identify the name of the class to instantiate
@@ -216,6 +217,7 @@
/**
* Process the end of this element.
*/
+ @Override
public void end() throws Exception {
Object top = digester.pop();
@@ -230,6 +232,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("ObjectCreateRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectParamRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectParamRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectParamRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/ObjectParamRule.java Wed Jan 27 17:40:49 2010
@@ -93,6 +93,7 @@
*
* @param attributes The attribute list for this element
*/
+ @Override
public void begin(String namespace, String name,
Attributes attributes) throws Exception {
Object anAttribute = null;
@@ -113,6 +114,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("ObjectParamRule[");
sb.append("paramIndex=");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/PathCallParamRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/PathCallParamRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/PathCallParamRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/PathCallParamRule.java Wed Jan 27 17:40:49 2010
@@ -68,6 +68,7 @@
* @param attributes The attribute list for this element
*/
+ @Override
public void begin(String namespace, String name, Attributes attributes) throws Exception {
String param = getDigester().getMatch();
@@ -82,6 +83,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("PathCallParamRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/RegexRules.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/RegexRules.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/RegexRules.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/RegexRules.java Wed Jan 27 17:40:49 2010
@@ -83,6 +83,7 @@
* @param pattern Nesting pattern to be matched for this Rule
* @param rule Rule instance to be registered
*/
+ @Override
protected void registerRule(String pattern, Rule rule) {
registeredRules.add(new RegisteredRule(pattern, rule));
}
@@ -90,6 +91,7 @@
/**
* Clear all existing Rule instance registrations.
*/
+ @Override
public void clear() {
registeredRules.clear();
}
@@ -104,6 +106,7 @@
* @param pattern Nesting pattern to be matched
* @return a list of matching <code>Rule</code>'s
*/
+ @Override
public List<Rule> match(String namespaceURI, String pattern) {
//
// not a particularly quick implementation
@@ -130,6 +133,7 @@
* in the order originally registered through the <code>add()</code>
* method.
*/
+ @Override
public List<Rule> rules() {
ArrayList<Rule> rules = new ArrayList<Rule>(registeredRules.size());
for (RegisteredRule rr : registeredRules) {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNestedPropertiesRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNestedPropertiesRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNestedPropertiesRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNestedPropertiesRule.java Wed Jan 27 17:40:49 2010
@@ -194,6 +194,7 @@
// --------------------------------------------------------- Public Methods
/** Invoked when rule is added to digester. */
+ @Override
public void setDigester(Digester digester) {
super.setDigester(digester);
log = digester.getLogger();
@@ -243,6 +244,7 @@
* @param name is the name of the current xml element
* @param attributes is the attribute list of this element
*/
+ @Override
public void begin(String namespace, String name, Attributes attributes)
throws Exception {
Rules oldRules = digester.getRules();
@@ -258,6 +260,7 @@
* so we can remove the custom Rules object that does the
* child-element-matching.
*/
+ @Override
public void body(String bodyText) throws Exception {
AnyChildRules newRules = (AnyChildRules) digester.getRules();
digester.setRules(newRules.getOldRules());
@@ -278,6 +281,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("SetNestedPropertiesRule[");
sb.append("allowUnknownChildElements=");
@@ -384,6 +388,7 @@
private String currChildNamespaceURI = null;
private String currChildElementName = null;
+ @Override
public void begin(String namespaceURI, String name,
Attributes attributes) throws Exception {
@@ -391,6 +396,7 @@
currChildElementName = name;
}
+ @Override
public void body(String value) throws Exception {
String propName = currChildElementName;
if (elementNames.containsKey(currChildElementName)) {
@@ -458,6 +464,7 @@
}
}
+ @Override
public void end(String namespace, String name) throws Exception {
currChildElementName = null;
}
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNextRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNextRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNextRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetNextRule.java Wed Jan 27 17:40:49 2010
@@ -183,6 +183,7 @@
/**
* Process the end of this element.
*/
+ @Override
public void end() throws Exception {
// Identify the objects to be used
@@ -226,6 +227,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("SetNextRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertiesRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertiesRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertiesRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertiesRule.java Wed Jan 27 17:40:49 2010
@@ -162,6 +162,7 @@
*
* @param attributes The attribute list of this element
*/
+ @Override
public void begin(Attributes attributes) throws Exception {
// Build a set of attribute names and corresponding values
@@ -295,6 +296,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("SetPropertiesRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertyRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertyRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertyRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetPropertyRule.java Wed Jan 27 17:40:49 2010
@@ -102,6 +102,7 @@
* @exception NoSuchMethodException if the bean does not
* have a writeable property of the specified name
*/
+ @Override
public void begin(Attributes attributes) throws Exception {
if (attributes.getLength() == 0 ) {
@@ -164,6 +165,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("SetPropertyRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetRootRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetRootRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetRootRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetRootRule.java Wed Jan 27 17:40:49 2010
@@ -176,6 +176,7 @@
/**
* Process the end of this element.
*/
+ @Override
public void end() throws Exception {
// Identify the objects to be used
@@ -219,6 +220,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("SetRootRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetTopRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetTopRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetTopRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/SetTopRule.java Wed Jan 27 17:40:49 2010
@@ -174,6 +174,7 @@
/**
* Process the end of this element.
*/
+ @Override
public void end() throws Exception {
// Identify the objects to be used
@@ -218,6 +219,7 @@
/**
* Render a printable version of this Rule.
*/
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("SetTopRule[");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/SimpleRegexMatcher.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/SimpleRegexMatcher.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/SimpleRegexMatcher.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/SimpleRegexMatcher.java Wed Jan 27 17:40:49 2010
@@ -70,6 +70,7 @@
* @param regexPattern the regex pattern the path will be tested against
* @return true if the given pattern matches the given path
*/
+ @Override
public boolean match(String basePattern, String regexPattern) {
// check for nulls
if (basePattern == null || regexPattern == null) {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginAssertionFailure.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginAssertionFailure.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginAssertionFailure.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginAssertionFailure.java Wed Jan 27 17:40:49 2010
@@ -80,6 +80,7 @@
*
* @since 1.8
*/
+ @Override
public Throwable getCause() {
return cause;
}
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginConfigurationException.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginConfigurationException.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginConfigurationException.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginConfigurationException.java Wed Jan 27 17:40:49 2010
@@ -63,6 +63,7 @@
*
* @since 1.8
*/
+ @Override
public Throwable getCause() {
return cause;
}
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginCreateRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginCreateRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginCreateRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginCreateRule.java Wed Jan 27 17:40:49 2010
@@ -299,6 +299,7 @@
* @throws PluginInvalidInputException
* @throws PluginConfigurationException
*/
+ @Override
public void begin(String namespace, String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception {
@@ -422,6 +423,7 @@
*
* @param text The body text of this element
*/
+ @Override
public void body(String namespace, String name, String text)
throws Exception {
@@ -455,6 +457,7 @@
*
* @see #begin
*/
+ @Override
public void end(String namespace, String name)
throws Exception {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginDeclarationRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginDeclarationRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginDeclarationRule.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginDeclarationRule.java Wed Jan 27 17:40:49 2010
@@ -61,6 +61,7 @@
*@exception java.lang.Exception
*/
+ @Override
public void begin(String namespace, String name,
org.xml.sax.Attributes attributes)
throws java.lang.Exception {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginException.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginException.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginException.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginException.java Wed Jan 27 17:40:49 2010
@@ -57,6 +57,7 @@
/**
* @return the underlying exception that caused this to be thrown
*/
+ @Override
public Throwable getCause() {
return cause;
}
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginInvalidInputException.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginInvalidInputException.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginInvalidInputException.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/PluginInvalidInputException.java Wed Jan 27 17:40:49 2010
@@ -58,6 +58,7 @@
*
* @since 1.8
*/
+ @Override
public Throwable getCause() {
return cause;
}
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromClass.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromClass.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromClass.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromClass.java Wed Jan 27 17:40:49 2010
@@ -90,6 +90,7 @@
* that class provided it has the correct prototype) as the source of
* dynamic rules for the plugged-in class.
*/
+ @Override
public RuleLoader findLoader(Digester digester, Class<?> pluginClass,
Properties p) throws PluginException {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltClass.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltClass.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltClass.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltClass.java Wed Jan 27 17:40:49 2010
@@ -69,6 +69,7 @@
* target method is expected to have the following prototype:
* <code> public static void xxxxx(Digester d, String patternPrefix); </code>
*/
+ @Override
public RuleLoader findLoader(Digester digester, Class<?> pluginClass, Properties p)
throws PluginException {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltMethod.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltMethod.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltMethod.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltMethod.java Wed Jan 27 17:40:49 2010
@@ -66,6 +66,7 @@
* target method is expected to have the following prototype:
* <code> public static void xxxxx(Digester d, String patternPrefix); </code>
*/
+ @Override
public RuleLoader findLoader(Digester d, Class<?> pluginClass, Properties p)
throws PluginException {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltResource.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltResource.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltResource.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromDfltResource.java Wed Jan 27 17:40:49 2010
@@ -68,6 +68,7 @@
* The returned object (when non-null) will add the selected rules to
* the digester whenever its addRules method is invoked.
*/
+ @Override
public RuleLoader findLoader(Digester d, Class<?> pluginClass, Properties p)
throws PluginException {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromFile.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromFile.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromFile.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromFile.java Wed Jan 27 17:40:49 2010
@@ -67,6 +67,7 @@
* The returned object (when non-null) will add the selected rules to
* the digester whenever its addRules method is invoked.
*/
+ @Override
public RuleLoader findLoader(Digester d, Class<?> pluginClass, Properties p)
throws PluginException {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromMethod.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromMethod.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromMethod.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromMethod.java Wed Jan 27 17:40:49 2010
@@ -63,6 +63,7 @@
* target method is expected to have the following prototype:
* <code> public static void xxxxx(Digester d, String patternPrefix); </code>
*/
+ @Override
public RuleLoader findLoader(Digester d, Class<?> pluginClass, Properties p)
throws PluginException {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromResource.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromResource.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromResource.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderFromResource.java Wed Jan 27 17:40:49 2010
@@ -64,6 +64,7 @@
* The returned object (when non-null) will add the selected rules to
* the digester whenever its addRules method is invoked.
*/
+ @Override
public RuleLoader findLoader(Digester d, Class<?> pluginClass, Properties p)
throws PluginException {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderSetProperties.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderSetProperties.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderSetProperties.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/FinderSetProperties.java Wed Jan 27 17:40:49 2010
@@ -84,6 +84,7 @@
* The returned object (when non-null) will add a SetPropertiesRule to
* the digester whenever its addRules method is invoked.
*/
+ @Override
public RuleLoader findLoader(Digester d, Class<?> pluginClass, Properties p) {
String state = p.getProperty(propsAttr);
if ((state != null) && state.equals(falseval)) {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromClass.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromClass.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromClass.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromClass.java Wed Jan 27 17:40:49 2010
@@ -64,6 +64,7 @@
/**
* Just invoke the target method.
*/
+ @Override
public void addRules(Digester d, String path) throws PluginException {
Log log = d.getLogger();
boolean debug = log.isDebugEnabled();
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromStream.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromStream.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromStream.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderFromStream.java Wed Jan 27 17:40:49 2010
@@ -71,6 +71,7 @@
* Add the rules previously loaded from the input stream into the
* specified digester.
*/
+ @Override
public void addRules(Digester d, String path) throws PluginException {
Log log = d.getLogger();
boolean debug = log.isDebugEnabled();
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderSetProperties.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderSetProperties.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderSetProperties.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/plugins/strategies/LoaderSetProperties.java Wed Jan 27 17:40:49 2010
@@ -39,6 +39,7 @@
/**
* Just add a SetPropertiesRule at the specified path.
*/
+ @Override
public void addRules(Digester digester, String path) {
Log log = digester.getLogger();
boolean debug = log.isDebugEnabled();
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/substitution/VariableSubstitutor.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/substitution/VariableSubstitutor.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/substitution/VariableSubstitutor.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/substitution/VariableSubstitutor.java Wed Jan 27 17:40:49 2010
@@ -79,6 +79,7 @@
* Substitutes the attributes (before they are passed to the
* <code>Rule</code> implementations's)
*/
+ @Override
public Attributes substitute(Attributes attributes) {
Attributes results = attributes;
if (attributesExpander != null) {
@@ -96,6 +97,7 @@
* @param bodyText the body text (as passed to <code>Digester</code>)
* @return the body text to be passed to the <code>Rule</code> implementations
*/
+ @Override
public String substitute(String bodyText) {
String result = bodyText;
if (bodyTextExpander != null) {
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterLoadingException.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterLoadingException.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterLoadingException.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterLoadingException.java Wed Jan 27 17:40:49 2010
@@ -61,6 +61,7 @@
*
* @since 1.8
*/
+ @Override
public Throwable getCause() {
return cause;
}
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterRuleParser.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterRuleParser.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterRuleParser.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/DigesterRuleParser.java Wed Jan 27 17:40:49 2010
@@ -87,6 +87,7 @@
private static final long serialVersionUID = 1L;
+ @Override
public String toString() {
StringBuffer str = new StringBuffer();
for (int i = 0; i < size(); i++) {
@@ -217,6 +218,7 @@
* should of this method should call this implementation first: i.e.
* <code>super.addRuleInstances(digester);</code>
*/
+ @Override
public void addRuleInstances(Digester digester) {
final String ruleClassName = Rule.class.getName();
digester.register(DIGESTER_PUBLIC_ID, getDigesterRulesDTD());
@@ -307,6 +309,7 @@
* If a pattern is defined for the attribute, push it onto the
* pattern stack.
*/
+ @Override
public void begin(Attributes attributes) {
pattern = attributes.getValue(attrName);
if (pattern != null) {
@@ -318,6 +321,7 @@
* If there was a pattern for this element, pop it off the pattern
* stack.
*/
+ @Override
public void end() {
if (pattern != null) {
patternStack.pop();
@@ -345,6 +349,7 @@
* pattern stack and the target Digester to the new rule set, and
* tell the Digester to parse the file.
*/
+ @Override
public void begin(Attributes attributes) throws Exception {
// The path attribute gives the URI to another digester rules xml file
String fileName = attributes.getValue("path");
@@ -525,6 +530,7 @@
* Factory for creating a BeanPropertySetterRule.
*/
private class BeanPropertySetterRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) throws Exception {
Rule beanPropertySetterRule = null;
String propertyname = attributes.getValue("propertyname");
@@ -545,6 +551,7 @@
* Factory for creating a CallMethodRule.
*/
protected class CallMethodRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
Rule callMethodRule = null;
String methodName = attributes.getValue("methodname");
@@ -602,6 +609,7 @@
*/
protected class CallParamRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
// create callparamrule
int paramIndex = Integer.parseInt(attributes.getValue("paramnumber"));
@@ -637,6 +645,7 @@
* Factory for creating a ObjectParamRule
*/
protected class ObjectParamRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) throws Exception {
// create callparamrule
int paramIndex = Integer.parseInt(attributes.getValue("paramnumber"));
@@ -674,6 +683,7 @@
*/
protected class NodeCreateRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) throws Exception {
String nodeType = attributes.getValue("type");
@@ -701,6 +711,7 @@
* Factory for creating a FactoryCreateRule
*/
protected class FactoryCreateRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
String className = attributes.getValue("classname");
String attrName = attributes.getValue("attrname");
@@ -716,6 +727,7 @@
* Factory for creating a ObjectCreateRule
*/
protected class ObjectCreateRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
String className = attributes.getValue("classname");
String attrName = attributes.getValue("attrname");
@@ -729,6 +741,7 @@
* Factory for creating a SetPropertiesRule
*/
protected class SetPropertiesRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
return new SetPropertiesRule();
}
@@ -738,6 +751,7 @@
* Factory for creating a SetPropertyRule
*/
protected class SetPropertyRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
String name = attributes.getValue("name");
String value = attributes.getValue("value");
@@ -749,6 +763,7 @@
* Factory for creating a SetNestedPropertiesRule
*/
protected class SetNestedPropertiesRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
boolean allowUnknownChildElements =
"true".equalsIgnoreCase(attributes.getValue("allow-unknown-child-elements"));
@@ -762,6 +777,7 @@
* Factory for creating a SetTopRuleFactory
*/
protected class SetTopRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
String methodName = attributes.getValue("methodname");
String paramType = attributes.getValue("paramtype");
@@ -775,6 +791,7 @@
* Factory for creating a SetNextRuleFactory
*/
protected class SetNextRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
String methodName = attributes.getValue("methodname");
String paramType = attributes.getValue("paramtype");
@@ -788,6 +805,7 @@
* Factory for creating a SetRootRuleFactory
*/
protected class SetRootRuleFactory extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) {
String methodName = attributes.getValue("methodname");
String paramType = attributes.getValue("paramtype");
@@ -814,6 +832,7 @@
* Add the alias to the SetPropertiesRule object created by the
* enclosing <set-properties-rule> tag.
*/
+ @Override
public void begin(Attributes attributes) {
String attrName = attributes.getValue("attr-name");
String propName = attributes.getValue("prop-name");
@@ -840,6 +859,7 @@
* Add the alias to the SetNestedPropertiesRule object created by the
* enclosing <set-nested-properties-rule> tag.
*/
+ @Override
public void begin(Attributes attributes) {
String attrName = attributes.getValue("attr-name");
String propName = attributes.getValue("prop-name");
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/FromXmlRuleSet.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/FromXmlRuleSet.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/FromXmlRuleSet.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/FromXmlRuleSet.java Wed Jan 27 17:40:49 2010
@@ -137,6 +137,7 @@
* XML file for this rule set.
* @see org.apache.commons.digester.RuleSetBase
*/
+ @Override
public void addRuleInstances(org.apache.commons.digester.Digester digester) throws XmlLoadException {
addRuleInstances(digester, null);
}
@@ -192,6 +193,7 @@
this.url = url;
}
+ @Override
public void loadRules() throws XmlLoadException {
try {
rulesDigester.parse(url.openStream());
@@ -208,6 +210,7 @@
this.inputSource = inputSource;
}
+ @Override
public void loadRules() throws XmlLoadException {
try {
rulesDigester.parse(inputSource);
Modified: commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/XmlLoadException.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/XmlLoadException.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/XmlLoadException.java (original)
+++ commons/proper/digester/trunk/src/java/org/apache/commons/digester/xmlrules/XmlLoadException.java Wed Jan 27 17:40:49 2010
@@ -51,6 +51,7 @@
* Returns the cause of this throwable or null if the cause is
* nonexistent or unknown.
*/
+ @Override
public Throwable getCause() {
return cause;
}
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/Address.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/Address.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/Address.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/Address.java Wed Jan 27 17:40:49 2010
@@ -92,6 +92,7 @@
employee.addAddress(this);
}
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("Address[");
sb.append("street=");
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/AlphaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/AlphaBean.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/AlphaBean.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/AlphaBean.java Wed Jan 27 17:40:49 2010
@@ -54,6 +54,7 @@
return child;
}
+ @Override
public String toString()
{
return "[AlphaBean] name=" + name + " child=" + child;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/BeanPropertySetterRuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -84,6 +84,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -104,6 +105,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/BetaBean.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/BetaBean.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/BetaBean.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/BetaBean.java Wed Jan 27 17:40:49 2010
@@ -50,6 +50,7 @@
return child;
}
+ @Override
public String toString()
{
return "[BetaBean] name=" + name + " child=" + child;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/Box.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/Box.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/Box.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/Box.java Wed Jan 27 17:40:49 2010
@@ -47,6 +47,7 @@
return children;
}
+ @Override
public String toString()
{
StringBuffer buf = new StringBuffer();
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/CallMethodRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/CallMethodRuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/CallMethodRuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/CallMethodRuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -74,6 +74,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -94,6 +95,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
@@ -541,6 +543,7 @@
{
super(methodName, paramCount);
}
+ @Override
protected void processMethodCallResult(Object result) {
this.result = result;
}
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/DigesterTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/DigesterTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/DigesterTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/DigesterTestCase.java Wed Jan 27 17:40:49 2010
@@ -94,6 +94,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -115,6 +116,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
@@ -388,6 +390,7 @@
public int called=0;
public TestConfigureDigester() {}
+ @Override
protected void initialize() {
called++;
}
@@ -406,10 +409,12 @@
public String body;
public Attributes attributes;
+ @Override
public void begin(String namespace, String name, Attributes attributes) {
this.attributes = new AttributesImpl(attributes);
}
+ @Override
public void body(String namespace, String name, String text) {
this.body = text;
}
@@ -432,12 +437,14 @@
digester.setSubstitutor(
new Substitutor() {
+ @Override
public Attributes substitute(Attributes attributes) {
AttributesImpl results = new AttributesImpl();
results.addAttribute("", "python", "python", "CDATA", "Cleese");
return results;
}
+ @Override
public String substitute(String bodyText) {
return "And now for something completely different...";
}
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/EBRTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/EBRTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/EBRTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/EBRTestCase.java Wed Jan 27 17:40:49 2010
@@ -58,6 +58,7 @@
*
* @return the matching rules to be tested.
*/
+ @Override
protected Rules createMatchingRulesForTest() {
return new ExtendedBaseRules();
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/Employee.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/Employee.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/Employee.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/Employee.java Wed Jan 27 17:40:49 2010
@@ -111,6 +111,7 @@
this.salary = salary;
}
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("Employee[");
sb.append("firstName=");
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamedBean.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamedBean.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamedBean.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamedBean.java Wed Jan 27 17:40:49 2010
@@ -47,6 +47,7 @@
setName(name);
}
+ @Override
public String toString() {
return "NamedBean[" + getName() + "]";
}
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamespaceSnapshotTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamespaceSnapshotTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamespaceSnapshotTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/NamespaceSnapshotTestCase.java Wed Jan 27 17:40:49 2010
@@ -43,6 +43,7 @@
/**
* @see Rule#begin(String, String, Attributes)
*/
+ @Override
public final void begin(final String namespace, final String name,
final Attributes attributes) {
Digester d = getDigester();
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/NodeCreateRuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -88,6 +88,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -108,6 +109,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/ObjectParamRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/ObjectParamRuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/ObjectParamRuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/ObjectParamRuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -77,6 +77,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -97,6 +98,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/OverlappingCallMethodRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/OverlappingCallMethodRuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/OverlappingCallMethodRuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/OverlappingCallMethodRuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -55,6 +55,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
}
@@ -70,6 +71,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
}
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/RegexRulesTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/RegexRulesTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/RegexRulesTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/RegexRulesTestCase.java Wed Jan 27 17:40:49 2010
@@ -41,6 +41,7 @@
// set up which should match every rule
RegexRules rules = new RegexRules(
new RegexMatcher() {
+ @Override
public boolean match(String pathPattern, String rulePattern) {
return true;
}
@@ -70,6 +71,7 @@
// set up which should match every rule
RegexRules rules = new RegexRules(
new RegexMatcher() {
+ @Override
public boolean match(String pathPattern, String rulePattern) {
return false;
}
@@ -93,6 +95,7 @@
// set up which should match every rule
RegexRules rules = new RegexRules(
new RegexMatcher() {
+ @Override
public boolean match(String pathPattern, String rulePattern) {
return (rulePattern.equals("/match/me"));
}
@@ -117,6 +120,7 @@
// set up which should match every rule
RegexRules rules = new RegexRules(
new RegexMatcher() {
+ @Override
public boolean match(String pathPattern, String rulePattern) {
return true;
}
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/RuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/RuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/RuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/RuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -72,6 +72,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -92,6 +93,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/RulesBaseTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/RulesBaseTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/RulesBaseTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/RulesBaseTestCase.java Wed Jan 27 17:40:49 2010
@@ -71,6 +71,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -100,6 +101,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetNestedPropertiesRuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -81,6 +81,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -101,6 +102,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertiesRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertiesRuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertiesRuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertiesRuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -84,6 +84,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -104,6 +105,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertyRuleTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertyRuleTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertyRuleTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/SetPropertyRuleTestCase.java Wed Jan 27 17:40:49 2010
@@ -86,6 +86,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -106,6 +107,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/SimpleTestBean.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/SimpleTestBean.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/SimpleTestBean.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/SimpleTestBean.java Wed Jan 27 17:40:49 2010
@@ -70,6 +70,7 @@
setBeta(beta);
}
+ @Override
public String toString() {
StringBuffer sb = new StringBuffer("[SimpleTestBean]");
sb.append(" alpha=");
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestFactoryCreate.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestFactoryCreate.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestFactoryCreate.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestFactoryCreate.java Wed Jan 27 17:40:49 2010
@@ -42,6 +42,7 @@
}
/** Set up instance variables required by this test case. */
+ @Override
public void setUp() {}
/** Return the tests included in this test suite. */
@@ -52,6 +53,7 @@
}
/** Tear down instance variables required by this test case.*/
+ @Override
public void tearDown() {}
// --------------------------------------------------------------- Test cases
@@ -62,6 +64,7 @@
// only used with this method
class ThrowExceptionCreateRule extends AbstractObjectCreationFactory {
+ @Override
public Object createObject(Attributes attributes) throws Exception {
throw new RuntimeException();
}
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestObjectCreationFactory.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestObjectCreationFactory.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestObjectCreationFactory.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestObjectCreationFactory.java Wed Jan 27 17:40:49 2010
@@ -32,6 +32,7 @@
public boolean called = false;
public Attributes attributes;
+ @Override
public Object createObject(Attributes attributes) {
this.attributes = new AttributesImpl(attributes);
called = true;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRule.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRule.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRule.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRule.java Wed Jan 27 17:40:49 2010
@@ -81,6 +81,7 @@
/**
* 'Begin' call.
*/
+ @Override
public void begin(Attributes attributes) {
appendCall();
}
@@ -89,6 +90,7 @@
/**
* 'Body' call.
*/
+ @Override
public void body(String text) {
this.bodyText = text;
appendCall();
@@ -98,6 +100,7 @@
/**
* 'End' call.
*/
+ @Override
public void end() {
appendCall();
}
@@ -150,6 +153,7 @@
/**
* Return the identifier.
*/
+ @Override
public String toString() {
return identifier;
}
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRuleSet.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRuleSet.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRuleSet.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/TestRuleSet.java Wed Jan 27 17:40:49 2010
@@ -98,6 +98,7 @@
* @param digester Digester instance to which the new Rule instances
* should be added.
*/
+ @Override
public void addRuleInstances(Digester digester) {
digester.addObjectCreate(prefix + "employee", Employee.class);
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/URLTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/URLTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/URLTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/URLTestCase.java Wed Jan 27 17:40:49 2010
@@ -52,6 +52,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -72,6 +73,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;
Modified: commons/proper/digester/trunk/src/test/org/apache/commons/digester/XIncludeTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/digester/trunk/src/test/org/apache/commons/digester/XIncludeTestCase.java?rev=903754&r1=903753&r2=903754&view=diff
==============================================================================
--- commons/proper/digester/trunk/src/test/org/apache/commons/digester/XIncludeTestCase.java (original)
+++ commons/proper/digester/trunk/src/test/org/apache/commons/digester/XIncludeTestCase.java Wed Jan 27 17:40:49 2010
@@ -67,6 +67,7 @@
/**
* Set up instance variables required by this test case.
*/
+ @Override
public void setUp() {
digester = new Digester();
@@ -87,6 +88,7 @@
/**
* Tear down instance variables required by this test case.
*/
+ @Override
public void tearDown() {
digester = null;