From 327b41f0fa762b96e5d8a32e4c730c23c0a9f5fc Mon Sep 17 00:00:00 2001 From: Yurii Dubinka Date: Fri, 11 Jan 2019 12:53:21 +0530 Subject: [PATCH] #980: Rename the 'Sync' to 'Synced' --- src/main/java/org/cactoos/text/{Sync.java => Synced.java} | 6 +++--- src/test/java/org/cactoos/text/TextOfTest.java | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename src/main/java/org/cactoos/text/{Sync.java => Synced.java} (93%) 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