Author: mostarda
Date: Sat May 12 22:48:39 2012
New Revision: 1337713
URL: http://svn.apache.org/viewvc?rev=1337713&view=rev
Log:
Fixed 1.7 compatibility. Related to #ANY23-84
Modified:
incubator/any23/trunk/core/src/main/java/org/apache/any23/validator/DefaultValidator.java
Modified:
incubator/any23/trunk/core/src/main/java/org/apache/any23/validator/DefaultValidator.java
URL:
http://svn.apache.org/viewvc/incubator/any23/trunk/core/src/main/java/org/apache/any23/validator/DefaultValidator.java?rev=1337713&r1=1337712&r2=1337713&view=diff
==============================================================================
---
incubator/any23/trunk/core/src/main/java/org/apache/any23/validator/DefaultValidator.java
(original)
+++
incubator/any23/trunk/core/src/main/java/org/apache/any23/validator/DefaultValidator.java
Sat May 12 22:48:39 2012
@@ -53,7 +53,7 @@ public class DefaultValidator implements
throws ValidatorException {
final ValidationReportBuilder validationReportBuilder = new
DefaultValidationReportBuilder();
for(Class<? extends Rule> cRule : rulesOrder) {
- Rule rule = newInstance(cRule);
+ Rule rule = newRuleInstance(cRule);
final RuleContext ruleContext = new DefaultRuleContext();
boolean applyOn;
try {
@@ -66,7 +66,7 @@ public class DefaultValidator implements
validationReportBuilder.traceRuleActivation(rule);
List<Class<? extends Fix>> cFixes = getFixes(cRule);
for(Class<? extends Fix> cFix : cFixes) {
- Fix fix = newInstance(cFix);
+ Fix fix = newFixInstance(cFix);
try {
fix.execute(rule, ruleContext, document);
} catch (Exception e) {
@@ -123,7 +123,7 @@ public class DefaultValidator implements
addRule(AboutNotURIRule.class);
}
- private Fix newInstance(Class<? extends Fix> cFix) throws
ValidatorException {
+ private Fix newFixInstance(Class<? extends Fix> cFix) throws
ValidatorException {
try {
return cFix.newInstance();
} catch (Exception e) {
@@ -131,7 +131,7 @@ public class DefaultValidator implements
}
}
- private Rule newInstance(Class<? extends Rule> cRule) throws
ValidatorException {
+ private Rule newRuleInstance(Class<? extends Rule> cRule) throws
ValidatorException {
try {
return cRule.newInstance();
} catch (Exception e) {