Ticket #16540: 0001-Modifications-required-in-DescriptorCollectorImpl.patch

File 0001-Modifications-required-in-DescriptorCollectorImpl.patch, 2.3 KB (added by leeroy, 4 years ago)
  • src/org/torproject/descriptor/impl/DescriptorCollectorImpl.java

    From ef110017744ce1bb7c4deba5cf20f073761e95cf Mon Sep 17 00:00:00 2001
    From: leeroy <ter.one.leeboi@hush.com>
    Date: Sat, 11 Jul 2015 23:35:10 -0400
    Subject: [PATCH] Modifications required in DescriptorCollectorImpl.
    
    ---
     src/org/torproject/descriptor/impl/DescriptorCollectorImpl.java | 8 ++++----
     1 file changed, 4 insertions(+), 4 deletions(-)
    
    diff --git a/src/org/torproject/descriptor/impl/DescriptorCollectorImpl.java b/src/org/torproject/descriptor/impl/DescriptorCollectorImpl.java
    index c088c00..bb57bc7 100644
    a b public class DescriptorCollectorImpl implements DescriptorCollector { 
    7171    }
    7272  }
    7373
    74   SortedMap<String, Long> statLocalDirectory(
     74  public SortedMap<String, Long> statLocalDirectory(
    7575      File localDirectory) {
    7676    SortedMap<String, Long> localFiles = new TreeMap<String, Long>();
    7777    if (!localDirectory.exists()) {
    public class DescriptorCollectorImpl implements DescriptorCollector { 
    9292    return localFiles;
    9393  }
    9494
    95   SortedMap<String, String> fetchRemoteDirectories(
     95  public SortedMap<String, String> fetchRemoteDirectories(
    9696      String collecTorBaseUrl, String[] remoteDirectories) {
    9797    SortedMap<String, String> fetchedDirectoryListings =
    9898        new TreeMap<String, String>();
    public class DescriptorCollectorImpl implements DescriptorCollector { 
    143143      Pattern.compile(".* href=\"([^\"/]+)\"" /* filename */
    144144      + ".*>(\\d{2}-\\w{3}-\\d{4} \\d{2}:\\d{2})\\s*<.*"); /* dateTime */
    145145
    146   SortedMap<String, Long> parseDirectoryListing(
     146  public SortedMap<String, Long> parseDirectoryListing(
    147147      String remoteDirectory, String directoryListing) {
    148148    SortedMap<String, Long> remoteFiles = new TreeMap<String, Long>();
    149149    DateFormat dateTimeFormat = ParseHelper.getDateFormat(
    public class DescriptorCollectorImpl implements DescriptorCollector { 
    169169    return remoteFiles;
    170170  }
    171171
    172   void fetchRemoteFiles(String collecTorBaseUrl,
     172  public void fetchRemoteFiles(String collecTorBaseUrl,
    173173      SortedMap<String, Long> remoteFiles, long minLastModified,
    174174      File localDirectory, SortedMap<String, Long> localFiles) {
    175175    for (Map.Entry<String, Long> e : remoteFiles.entrySet()) {