Skip to content

Commit

Permalink
Fix incorrect return impl in SmileXContent.createParser.
Browse files Browse the repository at this point in the history
Close #5510
  • Loading branch information
kzwang authored and jpountz committed Mar 24, 2014
1 parent 1496b03 commit 21e2dfb
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -30,7 +30,7 @@
import java.io.*;

/**
* A JSON based content implementation using Jackson.
* A Smile based content implementation using Jackson.
*/
public class SmileXContent implements XContent {

Expand Down Expand Up @@ -100,6 +100,6 @@ public XContentParser createParser(BytesReference bytes) throws IOException {

@Override
public XContentParser createParser(Reader reader) throws IOException {
return new JsonXContentParser(smileFactory.createParser(reader));
return new SmileXContentParser(smileFactory.createParser(reader));
}
}

0 comments on commit 21e2dfb

Please sign in to comment.