Uploaded image for project: '[Read Only] - Hippo Plugins'
  1. [Read Only] - Hippo Plugins
  2. HIPPLUG-1290

org.onehippo.taxonomy.impl.CategoryImpl.getInfos() should return translations map

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Outdated
    • None
    • None
    • plugins-taxonomy
    • None

    Description

      The current implementation of org.onehippo.taxonomy.impl.CategoryImpl.getInfos() returns a lazy map, which does not make sense at all now. Because Category already has translations map. It doesn't have to use lazy map at all now when it already has initialized a new map named 'translations'.

      I think #getInfos() can return 'translations' member simply because it is initialized in the constructor already, or Collections.unmodifiableMap(translations).

      Attachments

        Activity

          People

            Unassigned Unassigned
            cchen Charlie Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: