yarmol / h2database

Automatically exported from code.google.com/p/h2database
0 stars 0 forks source link

Duplicated code segments found in the org.h2.schema.Schema class #545

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version number of this lass is 5401.

Below method : 

    public void removeChildrenAndResources(Session session) {
      //------------- ignore
        while (constraints != null && constraints.size() > 0) {
            Constraint obj = (Constraint) constraints.values().toArray()[0];
            database.removeSchemaObject(session, obj);
        }
        while (constraints != null && constraints.size() > 0) {
            Constraint obj = (Constraint) constraints.values().toArray()[0];
            database.removeSchemaObject(session, obj);
        }
      //-------------- ignore
    }

I am not sure whether this is the author's original purpose or not, so just 
announce it for getting some eyes on.

Steven.

Original issue reported on code.google.com by chiamin0...@gmail.com on 28 Jan 2014 at 3:54

GoogleCodeExporter commented 9 years ago
Thank you very much, this was fixed by Thomas in revision 5449

Original comment by noelgrandin on 28 Feb 2014 at 8:41