projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace Reader with String in Parser interface
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
web
/
WebInterface.java
diff --git
a/src/main/java/net/pterodactylus/sone/web/WebInterface.java
b/src/main/java/net/pterodactylus/sone/web/WebInterface.java
index
4185c93
..
f08ad5d
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/web/WebInterface.java
+++ b/
src/main/java/net/pterodactylus/sone/web/WebInterface.java
@@
-796,7
+796,7
@@
public class WebInterface {
/* we need no context to find mentioned Sones. */
Set<Sone> mentionedSones = new HashSet<Sone>();
try {
/* we need no context to find mentioned Sones. */
Set<Sone> mentionedSones = new HashSet<Sone>();
try {
- for (Part part : soneTextParser.parse(null,
new StringReader(text)
)) {
+ for (Part part : soneTextParser.parse(null,
text
)) {
if (part instanceof SonePart) {
mentionedSones.add(((SonePart) part).getSone());
}
if (part instanceof SonePart) {
mentionedSones.add(((SonePart) part).getSone());
}