diff --git a/src/main/java/org/cactoos/text/Sync.java b/src/main/java/org/cactoos/text/Synced.java similarity index 93% rename from src/main/java/org/cactoos/text/Sync.java rename to src/main/java/org/cactoos/text/Synced.java index ecb4fcce35..5e8010def0 100644 --- a/src/main/java/org/cactoos/text/Sync.java +++ b/src/main/java/org/cactoos/text/Synced.java @@ -32,7 +32,7 @@ * * @since 0.18 */ -public final class Sync implements Text { +public final class Synced implements Text { /** * The text. @@ -48,7 +48,7 @@ public final class Sync implements Text { * Ctor. * @param text The text */ - public Sync(final Text text) { + public Synced(final Text text) { this(text, text); } @@ -57,7 +57,7 @@ public Sync(final Text text) { * @param text The text * @param lck The lock */ - public Sync(final Text text, final Object lck) { + public Synced(final Text text, final Object lck) { this.origin = text; this.lock = lck; } diff --git a/src/test/java/org/cactoos/text/TextOfTest.java b/src/test/java/org/cactoos/text/TextOfTest.java index bc7f124096..79e61a2622 100644 --- a/src/test/java/org/cactoos/text/TextOfTest.java +++ b/src/test/java/org/cactoos/text/TextOfTest.java @@ -49,7 +49,7 @@ public final class TextOfTest { public void readsInputIntoText() throws Exception { MatcherAssert.assertThat( "Can't read text from Input", - new Sync( + new Synced( new TextOf( new InputOf("привет, друг!"), StandardCharsets.UTF_8