Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageSourceHolder: fix bug #9

Closed
wants to merge 1 commit into from
Closed

Conversation

NaridaL
Copy link

@NaridaL NaridaL commented Sep 26, 2019

Die gelöschte Methode getMessage hat einen Bug, sie übergibt ein das gleiche wie new String[] { null }. Gewollt wird sein, (String[]) null oder new String[] {}.

Insgesamt ist die ganze Methode redundant, weil die gleiche Signatur schon von public static String getMessage(String schluessel, String... parameter) abgedeckt ist.

Die gelöschte Methode `getMessage` hat einen Bug, sie übergibt ein das gleiche wie `new String[] { null }`. Gewollt wird sein, `(String[]) null oder `new String[] {}`.

Insgesamt ist die ganze Methode redundant, weil die gleiche Signatur schon von `public static String getMessage(String schluessel, String... parameter)` abgedeckt ist.
@NaridaL
Copy link
Author

NaridaL commented Sep 26, 2019

In unserer Anwendung wird deshalb an 100 Stellen manuell (String[]) null übergeben. Entfernt man die, startet die Anwendung nicht...

@vonLogaJ zur Info.

* @return die Nachricht
*/
public static String getMessage(String schluessel) {
return getMessage(schluessel, Locale.GERMANY, (String) null);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Problem hier bei (String) null

@ghost
Copy link

ghost commented Jul 10, 2023

Wurde mittlerweile durch IFS-568 gefixt. Siehe commit:
77229f8

@ghost ghost closed this Jul 10, 2023
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant