From 450c9d358850b998a1dc2236642cf774fd99da2f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabr=C3=ADcio=20Barros=20Cabral?= Date: Tue, 23 Jan 2024 21:22:31 -0300 Subject: [PATCH] (#129) Rename Justify and Margins demo to avoid FQDN package name --- .../cactoos/pdf/demo/{Justify.java => JustifyText.java} | 5 +++-- .../cactoos/pdf/demo/{Margins.java => MarginsPage.java} | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) rename src/test/java/com/github/fabriciofx/cactoos/pdf/demo/{Justify.java => JustifyText.java} (96%) rename src/test/java/com/github/fabriciofx/cactoos/pdf/demo/{Margins.java => MarginsPage.java} (96%) diff --git a/src/test/java/com/github/fabriciofx/cactoos/pdf/demo/Justify.java b/src/test/java/com/github/fabriciofx/cactoos/pdf/demo/JustifyText.java similarity index 96% rename from src/test/java/com/github/fabriciofx/cactoos/pdf/demo/Justify.java rename to src/test/java/com/github/fabriciofx/cactoos/pdf/demo/JustifyText.java index 3d436f0..d698fcb 100644 --- a/src/test/java/com/github/fabriciofx/cactoos/pdf/demo/Justify.java +++ b/src/test/java/com/github/fabriciofx/cactoos/pdf/demo/JustifyText.java @@ -27,6 +27,7 @@ import com.github.fabriciofx.cactoos.pdf.Font; import com.github.fabriciofx.cactoos.pdf.Id; import com.github.fabriciofx.cactoos.pdf.content.Contents; +import com.github.fabriciofx.cactoos.pdf.content.Justify; import com.github.fabriciofx.cactoos.pdf.content.Text; import com.github.fabriciofx.cactoos.pdf.id.Serial; import com.github.fabriciofx.cactoos.pdf.page.DefaultPage; @@ -44,7 +45,7 @@ * @checkstyle HideUtilityClassConstructorCheck (200 lines) */ @SuppressWarnings({"PMD.UseUtilityClass", "PMD.ProhibitPublicStaticMethods"}) -public class Justify { +public class JustifyText { /** * Main method. * @@ -64,7 +65,7 @@ public static void main(final String[] args) throws Exception { new DefaultPage( id, new Contents( - new com.github.fabriciofx.cactoos.pdf.content.Justify( + new Justify( new Text( id, font, diff --git a/src/test/java/com/github/fabriciofx/cactoos/pdf/demo/Margins.java b/src/test/java/com/github/fabriciofx/cactoos/pdf/demo/MarginsPage.java similarity index 96% rename from src/test/java/com/github/fabriciofx/cactoos/pdf/demo/Margins.java rename to src/test/java/com/github/fabriciofx/cactoos/pdf/demo/MarginsPage.java index caa7e08..97acc0f 100644 --- a/src/test/java/com/github/fabriciofx/cactoos/pdf/demo/Margins.java +++ b/src/test/java/com/github/fabriciofx/cactoos/pdf/demo/MarginsPage.java @@ -31,6 +31,7 @@ import com.github.fabriciofx.cactoos.pdf.id.Serial; import com.github.fabriciofx.cactoos.pdf.page.DefaultPage; import com.github.fabriciofx.cactoos.pdf.pages.DefaultPages; +import com.github.fabriciofx.cactoos.pdf.pages.Margins; import com.github.fabriciofx.cactoos.pdf.resource.font.TimesRoman; import java.io.File; import java.nio.file.Files; @@ -43,7 +44,7 @@ * @checkstyle HideUtilityClassConstructorCheck (200 lines) */ @SuppressWarnings({"PMD.UseUtilityClass", "PMD.ProhibitPublicStaticMethods"}) -public final class Margins { +public final class MarginsPage { /** * Main method. * @@ -69,7 +70,7 @@ public static void main(final String[] args) throws Exception { file.toPath(), new Document( id, - new com.github.fabriciofx.cactoos.pdf.pages.Margins( + new Margins( 2.5, 2.5, 2.5,