Skip to content

Commit

Permalink
Fixed formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
alsutton committed Jun 5, 2013
1 parent f93b011 commit 1daf427
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions picasso/src/main/java/com/squareup/picasso/OkHttpLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,48 +17,48 @@ public class OkHttpLoader implements Loader {

private final OkHttpClient client;

/**
* Create new loader that uses OkHttp. This will install an image cache into your application
* cache directory.
*/
public OkHttpLoader(final Context context) {
this(Utils.createDefaultCacheDir(context));
}
/**
* Create new loader that uses OkHttp. This will install an image cache into your application
* cache directory.
*/
public OkHttpLoader(final Context context) {
this(Utils.createDefaultCacheDir(context));
}

/**
* Create new loader that uses OkHttp. This will install an image cache into your application
* cache directory.
*
* @param cacheDir The directory in which the cache should be stored
*/
public OkHttpLoader(final File cacheDir) {
this(cacheDir, Utils.calculateDiskCacheSize(cacheDir));
}
/**
* Create new loader that uses OkHttp. This will install an image cache into your application
* cache directory.
*
* @param cacheDir The directory in which the cache should be stored
*/
public OkHttpLoader(final File cacheDir) {
this(cacheDir, Utils.calculateDiskCacheSize(cacheDir));
}

/**
* Create new loader that uses OkHttp. This will install an image cache into your application
* cache directory.
*
* @param maxSize The size limit for the cache.
*/
public OkHttpLoader(final Context context, final int maxSize) {
this(Utils.createDefaultCacheDir(context), maxSize);
}
/**
* Create new loader that uses OkHttp. This will install an image cache into your application
* cache directory.
*
* @param maxSize The size limit for the cache.
*/
public OkHttpLoader(final Context context, final int maxSize) {
this(Utils.createDefaultCacheDir(context), maxSize);
}

/**
* Create new loader that uses OkHttp. This will install an image cache into your application
* cache directory.
*
* @param cacheDir The directory in which the cache should be stored
* @param maxSize The size limit for the cache.
*/
public OkHttpLoader(final File cacheDir, final int maxSize) {
this(new OkHttpClient());
try {
client.setResponseCache(new HttpResponseCache(cacheDir, maxSize));
} catch (IOException ignored) {
}
/**
* Create new loader that uses OkHttp. This will install an image cache into your application
* cache directory.
*
* @param cacheDir The directory in which the cache should be stored
* @param maxSize The size limit for the cache.
*/
public OkHttpLoader(final File cacheDir, final int maxSize) {
this(new OkHttpClient());
try {
client.setResponseCache(new HttpResponseCache(cacheDir, maxSize));
} catch (IOException ignored) {
}
}

/**
* Create a new loader that uses the specified OkHttp instance. A response cache will not be
Expand Down

0 comments on commit 1daf427

Please sign in to comment.