From 8d8b33bb98a756c529648bf2b815eba313a7f4ac Mon Sep 17 00:00:00 2001 From: spullara Date: Sun, 5 Dec 2010 16:32:34 -0800 Subject: [PATCH] this doesnt need to be a bufferedreader --- src/main/java/com/sampullara/mustache/MustacheCompiler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sampullara/mustache/MustacheCompiler.java b/src/main/java/com/sampullara/mustache/MustacheCompiler.java index cce5a929f..e69a281a2 100644 --- a/src/main/java/com/sampullara/mustache/MustacheCompiler.java +++ b/src/main/java/com/sampullara/mustache/MustacheCompiler.java @@ -105,11 +105,11 @@ public synchronized Mustache parseFile(String path) throws MustacheException { return result; } - public Mustache compile(BufferedReader br) throws MustacheException { + public Mustache compile(Reader br) throws MustacheException { return compile(br, new Stack(), new AtomicInteger(0), getClass().getClassLoader()); } - public Mustache compile(BufferedReader br, Stack scope, AtomicInteger currentLine, ClassLoader parent) throws MustacheException { + public Mustache compile(Reader br, Stack scope, AtomicInteger currentLine, ClassLoader parent) throws MustacheException { AtomicInteger num = new AtomicInteger(0); Mustache result; StringBuilder code = new StringBuilder();