Return-Path: X-Original-To: apmail-db-torque-dev-archive@www.apache.org Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4C5AE10525 for ; Wed, 26 Feb 2014 14:37:21 +0000 (UTC) Received: (qmail 82665 invoked by uid 500); 26 Feb 2014 14:37:20 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 82613 invoked by uid 500); 26 Feb 2014 14:37:19 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 82596 invoked by uid 99); 26 Feb 2014 14:37:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Feb 2014 14:37:19 +0000 Date: Wed, 26 Feb 2014 14:37:19 +0000 (UTC) From: "Thomas Fox (JIRA)" To: torque-dev@db.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (TORQUE-310) add simple way to remove unused imports MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/TORQUE-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Fox updated TORQUE-310: ------------------------------ Issue Type: Improvement (was: Bug) > add simple way to remove unused imports > --------------------------------------- > > Key: TORQUE-310 > URL: https://issues.apache.org/jira/browse/TORQUE-310 > Project: Torque > Issue Type: Improvement > Reporter: Thomas Fox > Fix For: 4.1 > > > One could check for lines starting with "import" and then check whether these imported Strings occur at another place in the file. If not, it should be safe to remove the import line. > This does not work in all situations, e.g. if the Class name occurs in a commoent but nowhere else (then the import is not removed though it should be), but should be good enough for 99% of cases. -- This message was sent by Atlassian JIRA (v6.1.5#6160) --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org