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

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

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Trivial Trivial
    • 2.6.0.Final
    • None
    • Git
    • None

      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

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

                Created:
                Updated:
                Resolved: