===================================================================== Found a 14 line (122 tokens) duplication in the following files: Starting at line 94 of /usr/local/dashboard/working/vishnuClient/src/org/cougaar/lib/vishnu/client/AggregateXMLResultHandler.java Starting at line 178 of /usr/local/dashboard/working/vishnuClient/src/org/cougaar/lib/vishnu/client/XMLResultHandler.java else if (name.equals ("MULTITASK")) { if (logger.isInfoEnabled() || debugParseAnswer) { logger.info (getName () + ".parseStartElement -\nAssignment: " + " resource = " + atts.getValue ("resource") + " start = " + atts.getValue ("start") + " end = " + atts.getValue ("end") + " setup = " + atts.getValue ("setup") + " wrapup = " + atts.getValue ("wrapup")); } String resourceUID = atts.getValue ("resource"); String startTime = atts.getValue ("start"); String endTime = atts.getValue ("end"); String setupTime = atts.getValue ("setup"); String wrapupTime = atts.getValue ("wrapup"); ===================================================================== Found a 32 line (101 tokens) duplication in the following files: Starting at line 65 of /usr/local/dashboard/working/vishnuClient/src/org/cougaar/lib/vishnu/client/custom/CustomVishnuAggregatorPlugin.java Starting at line 61 of /usr/local/dashboard/working/vishnuClient/src/org/cougaar/lib/vishnu/client/custom/CustomVishnuAllocatorPlugin.java info (this.getName() + ".createDataXMLizer - setting data xmlizer."); setDataXMLizer(createXMLizer(getRunDirectly())); } }; } /** * Create a CustomDataXMLize XMLizer * @see CustomDataXMLize */ protected XMLizer createXMLizer (boolean direct) { return new CustomDataXMLize (direct, logger); } /** * Creates lists of Vishnu objects. * * @param tasksAndResources - Cougaar tasks and resources to translate * @param vishnuTasks - list to add Vishnu tasks to * @param vishnuResources - list to add Vishnu resources to * @param objectFormat - contains field type info necessary to create fields on Vishnu objects * @param schedData - scheduling data object used when making Vishnu dates */ public void prepareVishnuObjects (List alpObjects, Collection changed, List vishnuTasks, List vishnuResources, List changedVishnuResources, Document formatDoc, SchedulingData schedData) { DirectTranslator dt = (DirectTranslator) getDataXMLizer (); ((CustomDataXMLize) dt).setFormatDoc (formatDoc, schedData); dt.createVishnuObjects (alpObjects, changed, vishnuTasks, vishnuResources, changedVishnuResources); }