import net.pterodactylus.sone.data.Post;
import net.pterodactylus.sone.data.Sone;
+import net.pterodactylus.sone.data.SoneImpl;
import net.pterodactylus.sone.database.PostProvider;
import net.pterodactylus.sone.database.SoneProvider;
import net.pterodactylus.util.io.Closer;
* don’t use create=true above, we don’t want
* the empty shell.
*/
- sone = Optional.fromNullable(new Sone(soneId, false));
+ sone = Optional.<Sone>of(new SoneImpl(soneId, false));
}
parts.add(new SonePart(sone.get()));
line = line.substring(50);