Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1783

Create an interface (eg. GitConstants) and add the constants there

    Details

    • Type: Task
    • Status: Closed (View Workflow)
    • Priority: Trivial
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.6.0.Final
    • Component/s: Git
    • Labels:
      None

      Description

      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

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                danielcunha Daniel Cunha (soro)
                Reporter:
                danielcunha Daniel Cunha (soro)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: