Skip to content

Commit

Permalink
(#129) Rename Justify and Margins demo to avoid FQDN package name
Browse files Browse the repository at this point in the history
  • Loading branch information
fabriciofx committed Jan 24, 2024
1 parent 157f54d commit 450c9d3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -44,7 +45,7 @@
* @checkstyle HideUtilityClassConstructorCheck (200 lines)
*/
@SuppressWarnings({"PMD.UseUtilityClass", "PMD.ProhibitPublicStaticMethods"})
public class Justify {
public class JustifyText {
/**
* Main method.
*
Expand All @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -43,7 +44,7 @@
* @checkstyle HideUtilityClassConstructorCheck (200 lines)
*/
@SuppressWarnings({"PMD.UseUtilityClass", "PMD.ProhibitPublicStaticMethods"})
public final class Margins {
public final class MarginsPage {
/**
* Main method.
*
Expand All @@ -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,
Expand Down

0 comments on commit 450c9d3

Please sign in to comment.