use camelCase for static methods

This commit is contained in:
Marc Beyer 2022-01-23 17:41:40 +01:00
parent c040e54fb8
commit e021809fd7
3 changed files with 4 additions and 4 deletions

View File

@ -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));
}
}

View File

@ -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")

View File

@ -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));
}
}