Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 22314 invoked from network); 11 Jun 2009 16:13:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jun 2009 16:13:43 -0000 Received: (qmail 94537 invoked by uid 500); 11 Jun 2009 16:13:54 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 94442 invoked by uid 500); 11 Jun 2009 16:13:54 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 94431 invoked by uid 99); 11 Jun 2009 16:13:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 16:13:54 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of knst.kolinko@gmail.com designates 209.85.218.225 as permitted sender) Received: from [209.85.218.225] (HELO mail-bw0-f225.google.com) (209.85.218.225) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Jun 2009 16:13:44 +0000 Received: by bwz25 with SMTP id 25so1856946bwz.0 for ; Thu, 11 Jun 2009 09:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=6UjJcmS/Xyv3WpIcqOpboV8FXFn2lb1u9jLQlA42h0U=; b=jKyT+/3APjuGsnRNWCARe2skI24dsESngMUkrFZumA3+ryj7F6IYVo2Hu4tHM+iA3F YOP16S0Xk1sO8cegNyfr8dz1SfSDJckTmZYjnkW1YJ6hc4irWOPHNQ9Et7NUrnCYONyd Iz8zJdw23vrpLPtEubEsFe5r9WoPm4ZP+0jx8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ajxXSg6uQklfzjlfEMhifyM66faaoji0rEw+k8SLW+uRU4pwvV9FmpNskoH1IkXK3U r5CI2X0pH0xVEcGEm9aoUAWc0n//Zfza+9Yfty4t9eUKxpwlAO7xkzNLsLYJxeX+bpwj j6wDt/Lqw6zvCLE7X4QjF3MRF37N17RZBlrLI= MIME-Version: 1.0 Received: by 10.103.39.17 with SMTP id r17mr1393310muj.75.1244736801797; Thu, 11 Jun 2009 09:13:21 -0700 (PDT) In-Reply-To: <4A3115FC.70306@apache.org> References: <20090611141650.47033238886C@eris.apache.org> <4A3115FC.70306@apache.org> Date: Thu, 11 Jun 2009 20:13:21 +0400 Message-ID: <427155180906110913g574ebf8p8204be344fca9676@mail.gmail.com> Subject: Re: svn commit: r783779 - /tomcat/trunk/java/org/apache/tomcat/util/buf/HexUtils.java From: Konstantin Kolinko To: Tomcat Developers List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 2009/6/11 Mark Thomas : > markt@apache.org wrote: >> Author: markt >> Date: Thu Jun 11 14:16:49 2009 >> New Revision: 783779 >> >> URL: http://svn.apache.org/viewvc?rev=783779&view=rev >> Log: >> Experiment with the UCDetector (Unused Code Detector) plug-in for Eclipse. >> Remove all the code from the class that isn't used anywhere in Tomcat. > > Early indications are that this plug-in is going to find quite a bit of > code that can de deleted or restricted in visibility. > > What are people's thoughts on running this over the entire code base? > > I would image that, if done, this would be done gradually, like the > conversion to use generics. > > Mark > If you want to do it, then why not? It is your time to spend. It is good to have some automated code review now before TC 7, because it may be hard to fix some issues once it is released. My experience with such tools is that you need to specify some set of "entry points", including possible reflection calls and classes specified through configuration, etc. and that may be hard. I do not know how hard it will be with this tool, and how many "// NO_UCD" comments [1] will be needed to dispose most of false positives. That will be your experience. [1] http://www.ucdetector.org/ But, certainly, running a tool must be easier than doing manual review In one of my last projects I used coverage results to find unused code. (Thanks to EclEmma plugin for Eclipse). Those results, though require much more work, are more reliable. Best regards, Konstantin Kolinko --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org