[forge-issues] [JBoss JIRA] (FORGE-1783) Create an interface (eg. GitConstants) and add the constants there

Daniel Cunha (JIRA) issues at jboss.org
Fri May 2 17:41:56 EDT 2014


     [ https://issues.jboss.org/browse/FORGE-1783?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Cunha updated FORGE-1783:
--------------------------------

    Assignee: Daniel Cunha


> Create an interface (eg. GitConstants) and add the constants there
> ------------------------------------------------------------------
>
>                 Key: FORGE-1783
>                 URL: https://issues.jboss.org/browse/FORGE-1783
>             Project: Forge
>          Issue Type: Task
>          Components: Git
>            Reporter: Daniel Cunha
>            Assignee: Daniel Cunha
>            Priority: Trivial
>
> Create an interface (eg. GitConstants) and add the constants there
> I have 2 files: [1][2]
> I need to create a two static final String GIT_DICTORY = ".git" per file.
> 1) I can remove all static final string in my code (Code more clean)
> 2) I don't need duplicate this string in any files. I use a unique reference and I can to do a import static, with this: [3]
> [1]https://github.com/danielsoro/core/blob/afaf5e620bbebc3b50dc7e656e3b02cf4f04f8c9/git/impl/src/main/java/org/jboss/forge/addon/git/facet/GitFacetImpl.java
> [2]https://github.com/danielsoro/core/blob/afaf5e620bbebc3b50dc7e656e3b02cf4f04f8c9/git/impl/src/main/java/org/jboss/forge/addon/git/facet/GitIgnoreFacetImpl.java
> [3]https://github.com/forge/core/blob/15a264c9392063b1d18ef8ec494a7884b340cb40/scaffold/spi/src/main/java/org/jboss/forge/addon/scaffold/metawidget/inspector/ForgeInspector.java



--
This message was sent by Atlassian JIRA
(v6.2.3#6260)


More information about the forge-issues mailing list