projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Clean up some imports
[Sone.git]
/
src
/
main
/
java
/
net
/
pterodactylus
/
sone
/
text
/
Parser.java
diff --git
a/src/main/java/net/pterodactylus/sone/text/Parser.java
b/src/main/java/net/pterodactylus/sone/text/Parser.java
index
f5f8f1b
..
ea3a81c
100644
(file)
--- a/
src/main/java/net/pterodactylus/sone/text/Parser.java
+++ b/
src/main/java/net/pterodactylus/sone/text/Parser.java
@@
-17,8
+17,9
@@
package net.pterodactylus.sone.text;
package net.pterodactylus.sone.text;
-import java.io.IOException;
import java.io.Reader;
import java.io.Reader;
+import javax.annotation.Nonnull;
+import javax.annotation.Nullable;
/**
* Interface for parsers that can create {@link Part}s from a text source
/**
* Interface for parsers that can create {@link Part}s from a text source
@@
-33,14
+34,13
@@
public interface Parser<C extends ParserContext> {
/**
* Create one or more {@link Part}s from the given text source.
*
/**
* Create one or more {@link Part}s from the given text source.
*
- * @param context
- * The parser context (may be {@code null})
* @param source
* The text source
* @param source
* The text source
+ * @param context
+ * The parser context (may be {@code null})
* @return The parsed parts
* @return The parsed parts
- * @throws IOException
- * if an I/O error occurs
*/
*/
- public Iterable<Part> parse(C context, Reader source) throws IOException;
+ @Nonnull
+ Iterable<Part> parse(@Nonnull String source, @Nullable C context);
}
}