From 1ed64e4d5ff3f3d78baea4f2b8cf3f11ce885d32 Mon Sep 17 00:00:00 2001 From: Peter Vlugter Date: Mon, 7 May 2012 14:39:41 +1200 Subject: [PATCH] Use Maybe rather than Option in IC --- compile/integration/IncrementalCompiler.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compile/integration/IncrementalCompiler.scala b/compile/integration/IncrementalCompiler.scala index 71cda4b79..7b84817f0 100644 --- a/compile/integration/IncrementalCompiler.scala +++ b/compile/integration/IncrementalCompiler.scala @@ -31,8 +31,8 @@ object IC extends IncrementalCompiler[Analysis, AnalyzingCompiler] AnalyzingCompiler.compileSources(sourceJar :: Nil, targetJar, interfaceJar :: Nil, label, raw, log) } - def readCache(file: File): Option[(Analysis, CompileSetup)] = - try { Some(readCacheUncaught(file)) } catch { case _: Exception => None } + def readCache(file: File): Maybe[(Analysis, CompileSetup)] = + try { Maybe.just(readCacheUncaught(file)) } catch { case _: Exception => Maybe.nothing() } def readAnalysis(file: File): Analysis = try { readCacheUncaught(file)._1 } catch { case _: Exception => Analysis.Empty }