diff --git a/modules/src/main/java/org/archive/modules/CrawlURI.java b/modules/src/main/java/org/archive/modules/CrawlURI.java index d81a1266..8c299b7c 100644 --- a/modules/src/main/java/org/archive/modules/CrawlURI.java +++ b/modules/src/main/java/org/archive/modules/CrawlURI.java @@ -66,7 +66,6 @@ import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.LinkedHashMap; -import java.util.LinkedList; import java.util.List; import java.util.Map; import java.util.Set; @@ -249,14 +248,6 @@ implements MultiReporter, Serializable, OverlayContext { * buggy */ protected long ordinal; - - /** - * Cache of this candidate uuri as a string. - * - * Profiling shows us spending about 1-2% of total elapsed time in - * toString. - */ - private String cachedCrawlURIString = null; /** * Array to hold keys of data members that persist across URI processings. @@ -593,22 +584,6 @@ implements MultiReporter, Serializable, OverlayContext { this.prerequisite = prerequisite; } - /** - * @return This crawl URI as a string wrapped with 'CrawlURI(' + - * ')'. - */ - public String getCrawlURIString() { - if (this.cachedCrawlURIString == null) { - synchronized (this) { - if (this.cachedCrawlURIString == null) { - this.cachedCrawlURIString = - "CrawlURI(" + toString() + ")"; - } - } - } - return this.cachedCrawlURIString; - } - /** * Get the content type of this URI. * @@ -1783,15 +1758,15 @@ implements MultiReporter, Serializable, OverlayContext { // // OverridesSource implementation // - protected LinkedList overlayNames = null; + transient protected ArrayList overlayNames = null; transient protected OverlayMapsSource overlayMapsSource; public boolean haveOverlayNamesBeenSet() { return overlayNames != null; } - public LinkedList getOverlayNames() { + public ArrayList getOverlayNames() { if(overlayNames == null) { - overlayNames = new LinkedList(); + overlayNames = new ArrayList(); } return overlayNames; }