From e021809fd75fd76e616ebed66c93c35d8df5f636 Mon Sep 17 00:00:00 2001 From: Marc Beyer Date: Sun, 23 Jan 2022 17:41:40 +0100 Subject: [PATCH] use camelCase for static methods --- client/app/src/main/java/customUI/Button.java | 2 +- client/app/src/main/java/customUI/Converter.java | 2 +- client/app/src/main/java/customUI/Label.java | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/app/src/main/java/customUI/Button.java b/client/app/src/main/java/customUI/Button.java index 3d4d4bf..61df976 100644 --- a/client/app/src/main/java/customUI/Button.java +++ b/client/app/src/main/java/customUI/Button.java @@ -3,6 +3,6 @@ package customUI; public class Button extends javafx.scene.control.Button { public void setTextValue(String text){ - super.setText(Converter.CONVERT_STR(text)); + super.setText(Converter.convertString(text)); } } diff --git a/client/app/src/main/java/customUI/Converter.java b/client/app/src/main/java/customUI/Converter.java index bf0c895..dc737af 100644 --- a/client/app/src/main/java/customUI/Converter.java +++ b/client/app/src/main/java/customUI/Converter.java @@ -8,7 +8,7 @@ public class Converter { ß \u00df */ @SuppressWarnings("all") - public static String CONVERT_STR(String str){ + public static String convertString(String str){ return str .replace("ä", "\u00e4") .replace("Ä", "\u00c4") diff --git a/client/app/src/main/java/customUI/Label.java b/client/app/src/main/java/customUI/Label.java index 8ba0ce2..ad5321e 100644 --- a/client/app/src/main/java/customUI/Label.java +++ b/client/app/src/main/java/customUI/Label.java @@ -2,7 +2,7 @@ package customUI; public class Label extends javafx.scene.control.Label { public Label(String content){ - super(Converter.CONVERT_STR(content)); + super(Converter.convertString(content)); } public Label(){ @@ -10,6 +10,6 @@ public class Label extends javafx.scene.control.Label { } public void setTextValue(String text){ - super.setText(Converter.CONVERT_STR(text)); + super.setText(Converter.convertString(text)); } }