Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-2913

Option check if parameter name (constant value) corresponds to field name

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • uimaFIT-Maven-Plugin
    • None

    Description

      Check if the parameter name (constant) value corresponds to the field, e.g.:

      public static final String PARAM_MIN_NGRAM_SIZE = "MinNGramSize";
      @ConfigurationParameter(name = PARAM_MIN_NGRAM_SIZE, mandatory = true, defaultValue = "1")
      private int minNGramSize;
      

      It should be possible to generate a warning here because the field is called "minNGramSize" and the parameter name is "MinNGramSize".

      Attachments

        Activity

          People

            rec Richard Eckart de Castilho
            rec Richard Eckart de Castilho
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: