From b75547fc603cd18b177e7fabbdd9acc9ba7a4ef8 Mon Sep 17 00:00:00 2001 From: low012 Date: Mon, 28 Dec 2009 11:05:50 +0000 Subject: [PATCH] *) minor changes git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6536 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/http/client/Cache.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/de/anomic/http/client/Cache.java b/source/de/anomic/http/client/Cache.java index 9803138c9..076f141cd 100644 --- a/source/de/anomic/http/client/Cache.java +++ b/source/de/anomic/http/client/Cache.java @@ -65,7 +65,7 @@ public final class Cache { private static String prefix; public static final Log log = new Log("HTCACHE"); - public static void init(final File htCachePath, String peerSalt, final long CacheSizeMax) { + public static void init(final File htCachePath, final String peerSalt, final long CacheSizeMax) { cachePath = htCachePath; maxCacheSize = CacheSizeMax; @@ -111,7 +111,7 @@ public final class Cache { fileDB.close(true); } - public static void store(DigestURI url, final ResponseHeader responseHeader, byte[] file) throws IOException { + public static void store(final DigestURI url, final ResponseHeader responseHeader, final byte[] file) throws IOException { if (responseHeader == null) throw new IOException("Cache.store of url " + url.toString() + " not possible: responseHeader == null"); if (file == null) throw new IOException("Cache.store of url " + url.toString() + " not possible: file == null"); @@ -205,7 +205,7 @@ public final class Cache { /** * Returns the content of a cached resource as byte[] * @param url the requested resource - * @return the resource content as byte[]. In no data + * @return the resource content as byte[]. If no data * is available or the cached file is not readable, null * is returned. * @throws IOException @@ -253,7 +253,7 @@ public final class Cache { * @param url * @throws IOException */ - public static void delete(DigestURI url) throws IOException { + public static void delete(final DigestURI url) throws IOException { responseHeaderDB.remove(url.hash()); fileDB.remove(url.hash().getBytes("UTF-8")); }