Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
this doesnt need to be a bufferedreader
Browse files Browse the repository at this point in the history
  • Loading branch information
spullara committed Dec 6, 2010
1 parent d6ab41a commit 8d8b33b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/sampullara/mustache/MustacheCompiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>(), new AtomicInteger(0), getClass().getClassLoader());
}

public Mustache compile(BufferedReader br, Stack<String> scope, AtomicInteger currentLine, ClassLoader parent) throws MustacheException {
public Mustache compile(Reader br, Stack<String> scope, AtomicInteger currentLine, ClassLoader parent) throws MustacheException {
AtomicInteger num = new AtomicInteger(0);
Mustache result;
StringBuilder code = new StringBuilder();
Expand Down

0 comments on commit 8d8b33b

Please sign in to comment.