You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by pa...@apache.org on 2011/05/09 18:59:27 UTC
svn commit: r1101110 -
/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/Registries.java
Author: pamarcelot
Date: Mon May 9 16:59:27 2011
New Revision: 1101110
URL: http://svn.apache.org/viewvc?rev=1101110&view=rev
Log:
This has nothing to do with syntax, switch to error code 'Other'.
Applied formatter.
Modified:
directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/Registries.java
Modified: directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/Registries.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/Registries.java?rev=1101110&r1=1101109&r2=1101110&view=diff
==============================================================================
--- directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/Registries.java (original)
+++ directory/shared/trunk/ldap/model/src/main/java/org/apache/directory/shared/ldap/model/schema/registries/Registries.java Mon May 9 16:59:27 2011
@@ -135,7 +135,8 @@ public class Registries implements Schem
protected Map<SchemaObjectWrapper, Set<SchemaObjectWrapper>> using;
/** A reference on the schema Manager */
- @SuppressWarnings({ "PMD.UnusedPrivateField", "unused" })
+ @SuppressWarnings(
+ { "PMD.UnusedPrivateField", "unused" })
// False positive
private SchemaManager schemaManager;
@@ -673,7 +674,8 @@ public class Registries implements Schem
@SuppressWarnings("PMD.UnusedFormalParameter")
private void buildDitContentRuleReferences( List<Throwable> errors )
{
- for ( @SuppressWarnings("unused") DITContentRule ditContentRule : ditContentRuleRegistry )
+ for ( @SuppressWarnings("unused")
+ DITContentRule ditContentRule : ditContentRuleRegistry )
{
// TODO
}
@@ -687,7 +689,8 @@ public class Registries implements Schem
@SuppressWarnings("PMD.UnusedFormalParameter")
private void buildDitStructureRuleReferences( List<Throwable> errors )
{
- for ( @SuppressWarnings("unused") DITStructureRule ditStructureRule : ditStructureRuleRegistry )
+ for ( @SuppressWarnings("unused")
+ DITStructureRule ditStructureRule : ditStructureRuleRegistry )
{
// TODO
}
@@ -792,7 +795,8 @@ public class Registries implements Schem
@SuppressWarnings("PMD.UnusedFormalParameter")
private void buildNameFormReferences( List<Throwable> errors )
{
- for ( @SuppressWarnings("unused") NameForm nameFormRule : nameFormRegistry )
+ for ( @SuppressWarnings("unused")
+ NameForm nameFormRule : nameFormRegistry )
{
// TODO
}
@@ -1083,8 +1087,8 @@ public class Registries implements Schem
else
{
// Not allowed : we have a cyle
- Throwable error = new LdapSchemaViolationException( ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX, I18n
- .err( I18n.ERR_04297, attributeType.getOid() ) );
+ Throwable error = new LdapSchemaViolationException( ResultCodeEnum.OTHER, I18n.err( I18n.ERR_04297,
+ attributeType.getOid() ) );
errors.add( error );
return;
}