===================================================================== Found a 34 line (300 tokens) duplication in the following files: Starting at line 80 of /usr/local/dashboard/working/pizza/src/org/cougaar/pizza/asset/MeatPGImpl.java Starting at line 80 of /usr/local/dashboard/working/pizza/src/org/cougaar/pizza/asset/VeggiePGImpl.java public DQ(VeggiePG original) { super(original); } public Object clone() { return new DQ(this); } private transient org.cougaar.planning.ldm.dq.DataQuality _dq = null; public boolean hasDataQuality() { return (_dq!=null); } public org.cougaar.planning.ldm.dq.DataQuality getDataQuality() { return _dq; } public void setDataQuality(org.cougaar.planning.ldm.dq.DataQuality dq) { _dq=dq; } private void writeObject(ObjectOutputStream out) throws IOException { out.defaultWriteObject(); if (out instanceof org.cougaar.core.persist.PersistenceOutputStream) out.writeObject(_dq); } private void readObject(ObjectInputStream in) throws ClassNotFoundException, IOException { in.defaultReadObject(); if (in instanceof org.cougaar.core.persist.PersistenceInputStream) _dq=(org.cougaar.planning.ldm.dq.DataQuality)in.readObject(); } private final static PropertyDescriptor properties[]=new PropertyDescriptor[1]; static { try { properties[0]= new PropertyDescriptor("dataQuality", DQ.class, "getDataQuality", null); } catch (Exception e) { e.printStackTrace(); } } public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] pds = super.properties; PropertyDescriptor[] ps = new PropertyDescriptor[pds.length+properties.length]; System.arraycopy(pds, 0, ps, 0, pds.length); System.arraycopy(properties, 0, ps, pds.length, properties.length); return ps; } } private transient VeggiePG _locked = null; ===================================================================== Found a 18 line (110 tokens) duplication in the following files: Starting at line 83 of /usr/local/dashboard/working/pizza/src/org/cougaar/pizza/asset/MeatPG.java Starting at line 83 of /usr/local/dashboard/working/pizza/src/org/cougaar/pizza/asset/VeggiePG.java implements VeggiePG, Future_PG { public boolean equals(Object object) { waitForFinalize(); return _real.equals(object); } public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); } public NewPropertyGroup unlock(Object key) { return null; } public PropertyGroup lock(Object key) { return null; } public PropertyGroup lock() { return null; } public PropertyGroup copy() { return null; } public Class getPrimaryClass(){return primaryClass;} public String getAssetGetMethod() {return assetGetter;} public String getAssetSetMethod() {return assetSetter;} public Class getIntrospectionClass() { return VeggiePGImpl.class; ===================================================================== Found a 15 line (105 tokens) duplication in the following files: Starting at line 60 of /usr/local/dashboard/working/pizza/src/org/cougaar/pizza/asset/MeatPG.java Starting at line 60 of /usr/local/dashboard/working/pizza/src/org/cougaar/pizza/asset/VeggiePG.java implements VeggiePG, Null_PG { public boolean equals(Object object) { throw new UndefinedValueException(); } public Object clone() throws CloneNotSupportedException { throw new CloneNotSupportedException(); } public NewPropertyGroup unlock(Object key) { return null; } public PropertyGroup lock(Object key) { return null; } public PropertyGroup lock() { return null; } public PropertyGroup copy() { return null; } public Class getPrimaryClass(){return primaryClass;} public String getAssetGetMethod() {return assetGetter;} public String getAssetSetMethod() {return assetSetter;} public Class getIntrospectionClass() { return VeggiePGImpl.class; ===================================================================== Found a 21 line (103 tokens) duplication in the following files: Starting at line 61 of /usr/local/dashboard/working/pizza/src/org/cougaar/pizza/asset/KitchenAsset.java Starting at line 61 of /usr/local/dashboard/working/pizza/src/org/cougaar/pizza/asset/PizzaAsset.java return new PizzaAsset(this); } protected void fillAllPropertyGroups(Vector v) { super.fillAllPropertyGroups(v); } // beaninfo support private static PropertyDescriptor properties[]; static { properties = new PropertyDescriptor[0]; } public PropertyDescriptor[] getPropertyDescriptors() { PropertyDescriptor[] pds = super.getPropertyDescriptors(); PropertyDescriptor[] ps = new PropertyDescriptor[pds.length+0]; System.arraycopy(pds, 0, ps, 0, pds.length); System.arraycopy(properties, 0, ps, pds.length, 0); return ps; } }