Skip to content

Commit

Permalink
Reverted to Java 6
Browse files Browse the repository at this point in the history
  • Loading branch information
DHuckaby committed Jan 24, 2014
1 parent 5d47cce commit ed5a6ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
5 changes: 0 additions & 5 deletions prime/build.gradle
Expand Up @@ -19,11 +19,6 @@ android {
compileSdkVersion 19
buildToolsVersion "19"

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}

defaultConfig {
minSdkVersion 9
targetSdkVersion 19
Expand Down
6 changes: 3 additions & 3 deletions prime/src/main/java/com/handlerexploit/prime/Prime.java
Expand Up @@ -54,8 +54,8 @@ public final class Prime {
private final Executor mNetworkExecutorService = newLowPriorityCachedFixedThreadPool(Runtime.getRuntime().availableProcessors() * 4);
private final Executor mDiskExecutorService = Executors.newCachedThreadPool();

private final LruCache<String, ReentrantLock> mLockCache = new LruCache<>(100);
private final LruCache<String, Object> mBadUrlCache = new LruCache<>(50);
private final LruCache<String, ReentrantLock> mLockCache = new LruCache<String, ReentrantLock>(100);
private final LruCache<String, Object> mBadUrlCache = new LruCache<String, Object>(50);

private Prime(MemoryCache memoryCache, BitmapOptionsFactory bitmapOptionsFactory, File diskCacheDirectory, URLConnectionClient urlConnectionClient, boolean debugging, int maxDiskCacheByteSize) {
mMemoryCache = memoryCache;
Expand Down Expand Up @@ -412,7 +412,7 @@ private static ExecutorService newLowPriorityCachedFixedThreadPool(int maximumPo
int corePoolSize = 0;
long keepAliveTime = 60L;
TimeUnit unit = TimeUnit.SECONDS;
BlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<>();
BlockingQueue<Runnable> workQueue = new LinkedBlockingQueue<Runnable>();
ThreadFactory factory = new LowPriorityThreadFactory();
RejectedExecutionHandler handler = new ThreadPoolExecutor.CallerRunsPolicy();

Expand Down

0 comments on commit ed5a6ce

Please sign in to comment.