You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2012/01/24 17:27:22 UTC
svn commit: r1235334 [6/6] - in /directory/apacheds/trunk:
ldap-client-test/src/test/java/org/apache/directory/shared/client/api/
ldap-client-test/src/test/java/org/apache/directory/shared/client/api/operations/
ldap-client-test/src/test/java/org/apach...
Modified: directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeTest.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeTest.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/OneLevelScopeTest.java Tue Jan 24 16:27:18 2012
@@ -98,14 +98,14 @@ public class OneLevelScopeTest
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
loaded = schemaManager.loadWithDeps( loader.getSchema( "collective" ) );
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
}
@@ -121,17 +121,17 @@ public class OneLevelScopeTest
// initialize the store
store = new AvlPartition( schemaManager );
- ((Partition)store).setId( "example" );
+ ( ( Partition ) store ).setId( "example" );
store.setCacheSize( 10 );
store.setPartitionPath( wkdir.toURI() );
store.setSyncOnWrite( true );
store.addIndex( new AvlIndex<String, Entry>( SchemaConstants.OU_AT_OID ) );
store.addIndex( new AvlIndex<String, Entry>( SchemaConstants.CN_AT_OID ) );
- ((Partition)store).setSuffixDn( new Dn( schemaManager, "o=Good Times Co." ) );
- ((Partition)store).initialize();
+ ( ( Partition ) store ).setSuffixDn( new Dn( schemaManager, "o=Good Times Co." ) );
+ ( ( Partition ) store ).initialize();
- ((Partition)store).initialize();
+ ( ( Partition ) store ).initialize();
StoreUtils.loadExampleData( store, schemaManager );
LOG.debug( "Created new store" );
@@ -143,7 +143,7 @@ public class OneLevelScopeTest
{
if ( store != null )
{
- ((Partition)store).destroy();
+ ( ( Partition ) store ).destroy();
}
store = null;
@@ -656,7 +656,8 @@ public class OneLevelScopeTest
@Test
public void testCursorWithDereferencing3() throws Exception
{
- Dn dn = new Dn( schemaManager, SchemaConstants.CN_AT_OID + "=jd," + SchemaConstants.OU_AT_OID + "=board of directors,"
+ Dn dn = new Dn( schemaManager, SchemaConstants.CN_AT_OID + "=jd," + SchemaConstants.OU_AT_OID
+ + "=board of directors,"
+ SchemaConstants.O_AT_OID + "=good times co." );
Entry entry = new DefaultEntry( schemaManager, dn );
@@ -667,9 +668,10 @@ public class OneLevelScopeTest
entry.add( "entryUUID", UUID.randomUUID().toString() );
AddOperationContext addContext = new AddOperationContext( null, entry );
- ((Partition)store).add( addContext );
+ ( ( Partition ) store ).add( addContext );
- dn = new Dn( schemaManager, SchemaConstants.CN_AT_OID + "=jdoe," + SchemaConstants.OU_AT_OID + "=board of directors,"
+ dn = new Dn( schemaManager, SchemaConstants.CN_AT_OID + "=jdoe," + SchemaConstants.OU_AT_OID
+ + "=board of directors,"
+ SchemaConstants.O_AT_OID + "=good times co." );
entry = new DefaultEntry( schemaManager, dn );
@@ -678,9 +680,9 @@ public class OneLevelScopeTest
entry.add( "sn", "doe" );
entry.add( "entryCSN", new CsnFactory( 1 ).newInstance().toString() );
entry.add( "entryUUID", UUID.randomUUID().toString() );
-
+
addContext = new AddOperationContext( null, entry );
- ((Partition)store).add( addContext );
+ ( ( Partition ) store ).add( addContext );
ScopeNode node = new ScopeNode( AliasDerefMode.DEREF_IN_SEARCHING, new Dn( SchemaConstants.OU_AT_OID
+ "=board of directors," + SchemaConstants.O_AT_OID + "=good times co." ), SearchScope.ONELEVEL );
Modified: directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/OrCursorTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/OrCursorTest.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/OrCursorTest.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/OrCursorTest.java Tue Jan 24 16:27:18 2012
@@ -105,14 +105,14 @@ public class OrCursorTest
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
loaded = schemaManager.loadWithDeps( loader.getSchema( "collective" ) );
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
}
@@ -128,17 +128,17 @@ public class OrCursorTest
// initialize the store
store = new AvlPartition( schemaManager );
- ((Partition)store).setId( "example" );
+ ( ( Partition ) store ).setId( "example" );
store.setCacheSize( 10 );
store.setPartitionPath( wkdir.toURI() );
store.setSyncOnWrite( false );
store.addIndex( new AvlIndex( SchemaConstants.OU_AT_OID ) );
store.addIndex( new AvlIndex( SchemaConstants.CN_AT_OID ) );
- ((Partition)store).setSuffixDn( new Dn( schemaManager, "o=Good Times Co." ) );
- ((Partition)store).initialize();
+ ( ( Partition ) store ).setSuffixDn( new Dn( schemaManager, "o=Good Times Co." ) );
+ ( ( Partition ) store ).initialize();
- ((Partition)store).initialize();
+ ( ( Partition ) store ).initialize();
StoreUtils.loadExampleData( store, schemaManager );
@@ -154,7 +154,7 @@ public class OrCursorTest
{
if ( store != null )
{
- ((Partition)store).destroy();
+ ( ( Partition ) store ).destroy();
}
store = null;
Modified: directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/PresenceTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/PresenceTest.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/PresenceTest.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/PresenceTest.java Tue Jan 24 16:27:18 2012
@@ -93,14 +93,14 @@ public class PresenceTest
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
loaded = schemaManager.loadWithDeps( loader.getSchema( "collective" ) );
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
}
@@ -116,20 +116,20 @@ public class PresenceTest
// initialize the store
store = new AvlPartition( schemaManager );
- ((Partition)store).setId( "example" );
+ ( ( Partition ) store ).setId( "example" );
store.setCacheSize( 10 );
store.setPartitionPath( wkdir.toURI() );
store.setSyncOnWrite( false );
store.addIndex( new AvlIndex( SchemaConstants.OU_AT_OID ) );
store.addIndex( new AvlIndex( SchemaConstants.CN_AT_OID ) );
- ((Partition)store).setSuffixDn( new Dn( schemaManager, "o=Good Times Co." ) );
- ((Partition)store).initialize();
+ ( ( Partition ) store ).setSuffixDn( new Dn( schemaManager, "o=Good Times Co." ) );
+ ( ( Partition ) store ).initialize();
- ((Partition)store).initialize();
+ ( ( Partition ) store ).initialize();
StoreUtils.loadExampleData( store, schemaManager );
-
+
LOG.debug( "Created new store" );
}
@@ -139,7 +139,7 @@ public class PresenceTest
{
if ( store != null )
{
- ((Partition)store).destroy();
+ ( ( Partition ) store ).destroy();
}
store = null;
Modified: directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/SubstringTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/SubstringTest.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/SubstringTest.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/SubstringTest.java Tue Jan 24 16:27:18 2012
@@ -89,14 +89,14 @@ public class SubstringTest
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
loaded = schemaManager.loadWithDeps( loader.getSchema( "collective" ) );
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
}
@@ -112,21 +112,21 @@ public class SubstringTest
// initialize the store
store = new AvlPartition( schemaManager );
- ((Partition)store).setId( "example" );
+ ( ( Partition ) store ).setId( "example" );
store.setCacheSize( 10 );
store.setPartitionPath( wkdir.toURI() );
store.setSyncOnWrite( false );
store.addIndex( new AvlIndex( SchemaConstants.OU_AT_OID ) );
store.addIndex( new AvlIndex( SchemaConstants.CN_AT_OID ) );
-
+
Dn suffixDn = new Dn( schemaManager, "o=Good Times Co." );
- ((Partition)store).setSuffixDn( suffixDn );
+ ( ( Partition ) store ).setSuffixDn( suffixDn );
- ((Partition)store).initialize();
+ ( ( Partition ) store ).initialize();
StoreUtils.loadExampleData( store, schemaManager );
-
+
LOG.debug( "Created new store" );
}
@@ -136,7 +136,7 @@ public class SubstringTest
{
if ( store != null )
{
- ((Partition)store).destroy();
+ ( ( Partition ) store ).destroy();
}
store = null;
Modified: directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/SubtreeScopeTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/SubtreeScopeTest.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/SubtreeScopeTest.java (original)
+++ directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/SubtreeScopeTest.java Tue Jan 24 16:27:18 2012
@@ -98,14 +98,14 @@ public class SubtreeScopeTest
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
loaded = schemaManager.loadWithDeps( loader.getSchema( "collective" ) );
if ( !loaded )
{
- fail( "Schema load failed : " + Exceptions.printErrors(schemaManager.getErrors()) );
+ fail( "Schema load failed : " + Exceptions.printErrors( schemaManager.getErrors() ) );
}
}
@@ -121,20 +121,20 @@ public class SubtreeScopeTest
// initialize the store
store = new AvlPartition( schemaManager );
- ((Partition)store).setId( "example" );
+ ( ( Partition ) store ).setId( "example" );
store.setCacheSize( 10 );
store.setPartitionPath( wkdir.toURI() );
store.setSyncOnWrite( true );
store.addIndex( new AvlIndex<String, Entry>( SchemaConstants.OU_AT_OID ) );
store.addIndex( new AvlIndex<String, Entry>( SchemaConstants.CN_AT_OID ) );
- ((Partition)store).setSuffixDn( new Dn( schemaManager, "o=Good Times Co." ) );
- ((Partition)store).initialize();
+ ( ( Partition ) store ).setSuffixDn( new Dn( schemaManager, "o=Good Times Co." ) );
+ ( ( Partition ) store ).initialize();
- ((Partition)store).initialize();
+ ( ( Partition ) store ).initialize();
StoreUtils.loadExampleData( store, schemaManager );
-
+
LOG.debug( "Created new store" );
}
@@ -144,7 +144,7 @@ public class SubtreeScopeTest
{
if ( store != null )
{
- ((Partition)store).destroy();
+ ( ( Partition ) store ).destroy();
}
store = null;
@@ -623,7 +623,8 @@ public class SubtreeScopeTest
@Test
public void testCursorWithDereferencing3() throws Exception
{
- Dn dn = new Dn( schemaManager, SchemaConstants.CN_AT_OID + "=jd," + SchemaConstants.OU_AT_OID + "=board of directors,"
+ Dn dn = new Dn( schemaManager, SchemaConstants.CN_AT_OID + "=jd," + SchemaConstants.OU_AT_OID
+ + "=board of directors,"
+ SchemaConstants.O_AT_OID + "=good times co." );
Entry entry = new DefaultEntry( schemaManager, dn );
@@ -634,9 +635,10 @@ public class SubtreeScopeTest
entry.add( "entryUUID", UUID.randomUUID().toString() );
AddOperationContext addContext = new AddOperationContext( null, entry );
- ((Partition)store).add( addContext );
+ ( ( Partition ) store ).add( addContext );
- dn = new Dn( schemaManager, SchemaConstants.CN_AT_OID + "=jdoe," + SchemaConstants.OU_AT_OID + "=board of directors,"
+ dn = new Dn( schemaManager, SchemaConstants.CN_AT_OID + "=jdoe," + SchemaConstants.OU_AT_OID
+ + "=board of directors,"
+ SchemaConstants.O_AT_OID + "=good times co." );
entry = new DefaultEntry( schemaManager, dn );
@@ -645,9 +647,9 @@ public class SubtreeScopeTest
entry.add( "sn", "doe" );
entry.add( "entryCSN", new CsnFactory( 1 ).newInstance().toString() );
entry.add( "entryUUID", UUID.randomUUID().toString() );
-
+
addContext = new AddOperationContext( null, entry );
- ((Partition)store).add( addContext );
+ ( ( Partition ) store ).add( addContext );
ScopeNode node = new ScopeNode( AliasDerefMode.DEREF_IN_SEARCHING, new Dn( SchemaConstants.OU_AT_OID
+ "=board of directors," + SchemaConstants.O_AT_OID + "=good times co." ), SearchScope.SUBTREE );
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/ASTNode.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/ASTNode.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/ASTNode.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/ASTNode.java Tue Jan 24 16:27:18 2012
@@ -47,7 +47,7 @@ public class ASTNode implements TreeNode
private final List<ASTNode> children;
- public ASTNode(ASTNode parent, ExprNode exprNode)
+ public ASTNode( ASTNode parent, ExprNode exprNode )
{
children = new ArrayList<ASTNode>( 2 );
this.exprNode = exprNode;
@@ -69,8 +69,8 @@ public class ASTNode implements TreeNode
}
BranchNode branch = ( BranchNode ) exprNode;
-
- for ( ExprNode child:branch.getChildren() )
+
+ for ( ExprNode child : branch.getChildren() )
{
children.add( new ASTNode( this, child ) );
}
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AboutDialog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AboutDialog.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AboutDialog.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AboutDialog.java Tue Jan 24 16:27:18 2012
@@ -68,7 +68,7 @@ public class AboutDialog extends JDialog
/** Creates new About Dialog */
- public AboutDialog(Frame parent, boolean modal)
+ public AboutDialog( Frame parent, boolean modal )
{
super( parent, modal );
initGUI();
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AddEntryDialog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AddEntryDialog.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AddEntryDialog.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AddEntryDialog.java Tue Jan 24 16:27:18 2012
@@ -81,7 +81,7 @@ public class AddEntryDialog extends JDia
* @param parent the parent frame
* @param modal whether or not to go modal on the dialog
*/
- public AddEntryDialog(Frame parent, boolean modal, SchemaManager schemaManager )
+ public AddEntryDialog( Frame parent, boolean modal, SchemaManager schemaManager )
{
super( parent, modal );
childEntry = new DefaultEntry( schemaManager );
@@ -210,7 +210,7 @@ public class AddEntryDialog extends JDia
{
log.debug( "Editor returning '" + l_textField.getText() + "'" );
}
-
+
return l_textField.getText();
}
};
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AnnotatedFilterTreeDialog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AnnotatedFilterTreeDialog.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AnnotatedFilterTreeDialog.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AnnotatedFilterTreeDialog.java Tue Jan 24 16:27:18 2012
@@ -52,7 +52,7 @@ public class AnnotatedFilterTreeDialog e
/** Creates new form JDialog */
- public AnnotatedFilterTreeDialog(Frame parent, boolean modal)
+ public AnnotatedFilterTreeDialog( Frame parent, boolean modal )
{
super( parent, modal );
initGUI();
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AttributesTableModel.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AttributesTableModel.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AttributesTableModel.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/AttributesTableModel.java Tue Jan 24 16:27:18 2012
@@ -38,25 +38,25 @@ import org.apache.directory.shared.ldap.
public class AttributesTableModel extends AbstractTableModel
{
private static final long serialVersionUID = 3256443603340310841L;
-
+
/** name for the key column */
public static final String KEY_COL = "Keys";
-
+
/** name for the values column */
public static final String VAL_COL = "Values";
/** list of attribute ids */
private final ArrayList<Object> keyList;
-
+
/** list of attribute values */
private final ArrayList<Object> valList;
/** the unique id of the entry */
private final Long id;
-
+
/** the distinguished name of the entry */
private final String dn;
-
+
/** whether or not the model is mutable */
private boolean isMutable = true;
@@ -69,7 +69,7 @@ public class AttributesTableModel extend
* @param dn the distinguished name of the entry
* @param isMutable whether or not the model can be changed
*/
- public AttributesTableModel( Entry entry, Long id, String dn, boolean isMutable)
+ public AttributesTableModel( Entry entry, Long id, String dn, boolean isMutable )
{
this.dn = dn;
this.id = id;
@@ -77,7 +77,7 @@ public class AttributesTableModel extend
int rowCount = 0;
- for ( Attribute attribute:entry )
+ for ( Attribute attribute : entry )
{
String attrId = attribute.getId();
rowCount = rowCount + entry.get( attrId ).size();
@@ -86,9 +86,9 @@ public class AttributesTableModel extend
keyList = new ArrayList<Object>( rowCount );
valList = new ArrayList<Object>( rowCount );
- for ( Attribute attribute:entry )
+ for ( Attribute attribute : entry )
{
- for ( Value<?> value:attribute )
+ for ( Value<?> value : attribute )
{
keyList.add( attribute.getId() );
valList.add( value.getValue() );
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/EntryNode.java Tue Jan 24 16:27:18 2012
@@ -100,13 +100,13 @@ public class EntryNode implements TreeNo
if ( engine != null && exprNode != null )
{
- if ( db.getChildCount( (Long)rec.getId() ) == 0 )
+ if ( db.getChildCount( ( Long ) rec.getId() ) == 0 )
{
Evaluator evaluator = engine.evaluator( exprNode );
-
+
if ( evaluator.evaluate( rec ) )
{
- Entry newEntry = db.lookup( (Long)rec.getId() );
+ Entry newEntry = db.lookup( ( Long ) rec.getId() );
EntryNode child = new EntryNode( ( Long ) rec.getId(), this, db, newEntry, map, exprNode,
engine );
children.add( child );
@@ -118,7 +118,7 @@ public class EntryNode implements TreeNo
}
else
{
- Entry newEntry = db.lookup( (Long)rec.getId() );
+ Entry newEntry = db.lookup( ( Long ) rec.getId() );
EntryNode child = new EntryNode( ( Long ) rec.getId(), this, db, newEntry, map, exprNode,
engine );
children.add( child );
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/FilterDialog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/FilterDialog.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/FilterDialog.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/FilterDialog.java Tue Jan 24 16:27:18 2012
@@ -89,7 +89,7 @@ public class FilterDialog extends JDialo
/** Creates new form JDialog */
- public FilterDialog(String a_mode, JFrame parent, boolean modal)
+ public FilterDialog( String a_mode, JFrame parent, boolean modal )
{
super( parent, modal );
m_mode = a_mode;
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionFrame.java Tue Jan 24 16:27:18 2012
@@ -610,7 +610,7 @@ public class PartitionFrame extends JFra
try
{
- root = FilterParser.parse(schemaManager, filter);
+ root = FilterParser.parse( schemaManager, filter );
}
catch ( Exception e )
{
@@ -791,7 +791,7 @@ public class PartitionFrame extends JFra
public void showIndexDialog( String idxAttr ) throws Exception
{
AttributeType attributeType = schemaManager.lookupAttributeTypeRegistry( idxAttr );
-
+
Index index;
boolean isSystem = partition.hasSystemIndexOn( attributeType );
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/PartitionViewer.java Tue Jan 24 16:27:18 2012
@@ -40,7 +40,7 @@ public class PartitionViewer
/** A handle on the atomic partition */
private AbstractBTreePartition partition;
-
+
/** A handle on the global schemaManager */
private SchemaManager schemaManager;
@@ -55,7 +55,8 @@ public class PartitionViewer
// added return value so expressions in debugger does not freak with void
public int execute() throws Exception
{
- Thread t = new Thread( new Runnable() {
+ Thread t = new Thread( new Runnable()
+ {
public void run()
{
PartitionFrame frame = null;
@@ -72,12 +73,13 @@ public class PartitionViewer
Dimension frameSize = frame.getSize();
frameSize.height = ( ( frameSize.height > screenSize.height ) ? screenSize.height : frameSize.height );
frameSize.width = ( ( frameSize.width > screenSize.width ) ? screenSize.width : frameSize.width );
- frame.setLocation( ( screenSize.width - frameSize.width ) / 2, ( screenSize.height - frameSize.height ) / 2 );
+ frame.setLocation( ( screenSize.width - frameSize.width ) / 2,
+ ( screenSize.height - frameSize.height ) / 2 );
frame.setVisible( true );
LOG.debug( frameSize + "" );
}
- });
+ } );
t.run();
return 0;
Modified: directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/SearchResultDialog.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/SearchResultDialog.java?rev=1235334&r1=1235333&r2=1235334&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/SearchResultDialog.java (original)
+++ directory/apacheds/trunk/xdbm-tools/src/main/java/org/apache/directory/server/core/partition/impl/btree/gui/SearchResultDialog.java Tue Jan 24 16:27:18 2012
@@ -61,7 +61,7 @@ public class SearchResultDialog extends
/** Creates new form JDialog */
- public SearchResultDialog(Frame parent, boolean modal)
+ public SearchResultDialog( Frame parent, boolean modal )
{
super( parent, modal );
initGUI();