[jira] Created: (NUTCH-804) CrawlDatum.statNames can be modified

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (NUTCH-804) CrawlDatum.statNames can be modified

JIRA jira@apache.org
CrawlDatum.statNames can be modified
------------------------------------

                 Key: NUTCH-804
                 URL: https://issues.apache.org/jira/browse/NUTCH-804
             Project: Nutch
          Issue Type: Bug
          Components: fetcher
    Affects Versions: 1.0.0
            Reporter: Mike Baranczak
            Priority: Minor


public static final HashMap<Byte, String> statNames

It's possible to modify the contents of this hash map from anywhere in the application, which could cause problems in unrelated places. Unless I'm missing something, there's no good reason to modify this map after it's initialized. So, it should either not be declared public, or be made read-only.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.