[easystruts-cvs] net.sf.easystruts cpd-compare-withpde-2005-05-15.txt,NONE,1.1
Brought to you by:
eboudrant,
pombredanne
|
From: Philippe O. <pom...@us...> - 2005-12-14 00:09:00
|
Update of /cvsroot/easystruts/net.sf.easystruts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv4938 Added Files: cpd-compare-withpde-2005-05-15.txt Log Message: A comparison of the source with PDE 2.1.2 --- NEW FILE: cpd-compare-withpde-2005-05-15.txt --- ===================================================================== Found a 18 line (94 tokens) duplication in the following files: Starting at line 33 of C:\ec-213\eclipse\workspace\net.sf.easystruts\src\org\easystruts\eclipse\editor\AlertSection.java Starting at line 43 of C:\ec-213\eclipse\workspace\org.eclipse.pde.ui\src-pdeui\org\eclipse\pde\internal\ui\editor\manifest\AlertSection.java private HyperlinkHandler handler; private Composite container; class DeltaVisitor implements IResourceDeltaVisitor { private boolean markersChanged = false; private IProject ourProject; public DeltaVisitor(IProject ourProject) { this.ourProject = ourProject; } public boolean visit(IResourceDelta delta) { IResource resource = delta.getResource(); if (resource == null) return true; IProject project = resource.getProject(); if (project == null) return true; if (resource.getProject().equals(ourProject)) { if ((delta.getKind() & IResourceDelta.CHANGED) != 0) { ===================================================================== Found a 13 line (85 tokens) duplication in the following files: Starting at line 84 of C:\ec-213\eclipse\workspace\net.sf.easystruts\src\org\easystruts\eclipse\EasyStrutsConfigModelManager.java Starting at line 90 of C:\ec-213\eclipse\workspace\org.eclipse.pde.core\src-pdecore\org\eclipse\pde\internal\core\WorkspaceModelManager.java } public void connect(Object element, Object consumer) { this.connect(element, consumer, true); } public void connect(Object element, Object consumer, boolean editable) { ModelInfo info = (ModelInfo) models.get(element); if (info == null) { info = new ModelInfo(); info.count = 0; models.put(element, info); } info.count++; if (info.model != null && info.consumer != null) { |