From cc57d3971fe00b39d0f32fb8e06258663d15dad4 Mon Sep 17 00:00:00 2001 From: Jeroen9876 <53210934+Jeroen9876@users.noreply.github.com> Date: Tue, 25 Jun 2024 21:29:27 +0200 Subject: [PATCH] Update Post.java Bugfix: text output was reversed --- src/main/java/com/openshift/fordevelopers/Post.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/openshift/fordevelopers/Post.java b/src/main/java/com/openshift/fordevelopers/Post.java index f30015b..e708658 100644 --- a/src/main/java/com/openshift/fordevelopers/Post.java +++ b/src/main/java/com/openshift/fordevelopers/Post.java @@ -24,11 +24,11 @@ public Post(String title, String content) { } public String getTitle() { - return new StringBuilder(title).reverse().toString(); // Should be: return title; + return title; } public String getContent() { - return new StringBuilder(content).reverse().toString(); // Should be: return content; + return content; } public Long getTimestamp() { return timestamp; @@ -61,4 +61,4 @@ public boolean equals(Object obj) { public int hashCode() { return Objects.hash(this.title, this.content, this.timestamp); } -} \ No newline at end of file +}