forked from objectionary/opeo-maven-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(objectionary#226): add DummyStorage
- Loading branch information
1 parent
1c879ca
commit 108a5d9
Showing
3 changed files
with
87 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.eolang.opeo.storage; | ||
|
||
import com.jcabi.log.Logger; | ||
import java.util.stream.Stream; | ||
|
||
public final class DummyStorage implements Storage { | ||
@Override | ||
public Stream<XmirEntry> all() { | ||
return Stream.empty(); | ||
} | ||
|
||
@Override | ||
public void save(final XmirEntry xmir) { | ||
Logger.debug(this, "Dummy storage: skip %s", xmir); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters