db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Fox (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (TORQUE-310) add simple way to remove unused imports
Date Wed, 03 Sep 2014 21:03:51 GMT

     [ https://issues.apache.org/jira/browse/TORQUE-310?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Thomas Fox resolved TORQUE-310.
    Resolution: Fixed

> add simple way to remove unused imports
> ---------------------------------------
>                 Key: TORQUE-310
>                 URL: https://issues.apache.org/jira/browse/TORQUE-310
>             Project: Torque
>          Issue Type: Improvement
>          Components: Generator, Templates
>            Reporter: Thomas Fox
>            Assignee: 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
> 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

To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org

View raw message