===================================================================== Found a 30 line (147 tokens) duplication in the following files: Starting at line 102 of /usr/local/dashboard/working/mtsstd/src/org/cougaar/mts/std/AgentStatusAspect.java Starting at line 105 of /usr/local/dashboard/working/mtsstd/src/org/cougaar/mts/std/DeliveryVerificationAspect.java INFO_TIME_VALUE_STR)); } public void start() { super.start(); ServiceBroker sb = getServiceBroker(); SendQueueProviderService sendq_fact = (SendQueueProviderService) sb.getService(this, SendQueueProviderService.class, null); DestinationQueueProviderService destq_fact = (DestinationQueueProviderService) sb.getService(this, DestinationQueueProviderService.class, null); LoggingService lsvc = getLoggingService(); if (sendq_fact != null) { sendq_fact.addListener(this); sb.releaseService(this, SendQueueProviderService.class, sendq_fact); } else if (lsvc.isInfoEnabled()) { lsvc.info("Couldn't get SendQueueProviderService"); } if (destq_fact != null) { destq_fact.addListener(this); sb.releaseService(this, DestinationQueueProviderService.class, sendq_fact); } else if (lsvc.isInfoEnabled()) { lsvc.info("Couldn't get DestinationQueueProviderService"); } ===================================================================== Found a 21 line (127 tokens) duplication in the following files: Starting at line 23 of /usr/local/dashboard/working/mtsstd/src/org/cougaar/mts/corba/idlj/CorbaDontRetryExceptionHelper.java Starting at line 23 of /usr/local/dashboard/working/mtsstd/src/org/cougaar/mts/corba/idlj/CorbaMisdeliveredMessageHelper.java public static org.cougaar.mts.corba.idlj.CorbaMisdeliveredMessage extract (org.omg.CORBA.Any a) { return read (a.create_input_stream ()); } private static org.omg.CORBA.TypeCode __typeCode = null; private static boolean __active = false; synchronized public static org.omg.CORBA.TypeCode type () { if (__typeCode == null) { synchronized (org.omg.CORBA.TypeCode.class) { if (__typeCode == null) { if (__active) { return org.omg.CORBA.ORB.init().create_recursive_tc ( _id ); } __active = true; org.omg.CORBA.StructMember[] _members0 = new org.omg.CORBA.StructMember [0]; ===================================================================== Found a 29 line (100 tokens) duplication in the following files: Starting at line 45 of /usr/local/dashboard/working/mtsstd/src/org/cougaar/mts/base/LoopbackLinkProtocol.java Starting at line 51 of /usr/local/dashboard/working/mtsstd/src/org/cougaar/mts/std/FutileSerializingLinkProtocol.java public FutileSerializingLinkProtocol() { super(); links = new HashMap(); } public synchronized DestinationLink getDestinationLink(MessageAddress address) { DestinationLink link = (DestinationLink) links.get(address); if (link == null) { link = new Link(address); link = (DestinationLink) attachAspects(link,DestinationLink.class); links.put(address, link); } return link; } public void registerClient(MessageTransportClient client) { // Does nothing because the Database of local clients is held // by MessageTransportServerImpl } public void unregisterClient(MessageTransportClient client) { // Does nothing because the Database of local clients is held // by MessageTransportServerImpl } public boolean addressKnown(MessageAddress address) { // we know everybody return true;