projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace Fetched with Kotlin version
[Sone.git]
/
src
/
test
/
java
/
net
/
pterodactylus
/
sone
/
text
/
SoneTextParserTest.java
diff --git
a/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
b/src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
index
b763cd1
..
79f1974
100644
(file)
--- a/
src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
+++ b/
src/test/java/net/pterodactylus/sone/text/SoneTextParserTest.java
@@
-467,9
+467,10
@@
public class SoneTextParserTest {
private static class TestPostProvider implements PostProvider {
private static class TestPostProvider implements PostProvider {
+ @Nullable
@Override
@Override
- public
Optional<Post> getPost(
final String postId) {
- return
Optional.<Post>of(
new Post() {
+ public
Post getPost(@Nonnull
final String postId) {
+ return new Post() {
@Override
public String getId() {
return postId;
@Override
public String getId() {
return postId;
@@
-514,7
+515,7
@@
public class SoneTextParserTest {
public Post setKnown(boolean known) {
return null;
}
public Post setKnown(boolean known) {
return null;
}
- }
)
;
+ };
}
@Override
}
@Override
@@
-531,9
+532,10
@@
public class SoneTextParserTest {
private static class AbsentPostProvider extends TestPostProvider {
private static class AbsentPostProvider extends TestPostProvider {
+ @Nullable
@Override
@Override
- public
Optional<Post> getPost(
String postId) {
- return
Optional.absent()
;
+ public
Post getPost(@Nonnull
String postId) {
+ return
null
;
}
}
}
}