replace(string, string) to replace(char, char) [spotbugs]
This commit is contained in:
parent
4ccdcb95c3
commit
d7e1cf9132
2 changed files with 2 additions and 2 deletions
|
@ -297,7 +297,7 @@ public class EntryLink implements Serializable {
|
||||||
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
|
@SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops")
|
||||||
public final void setTags(final String tags) {
|
public final void setTags(final String tags) {
|
||||||
if (tags != null) {
|
if (tags != null) {
|
||||||
final String[] parts = tags.replace(", ", " ").replace(",", " ").split(" ");
|
final String[] parts = tags.replace(", ", " ").replace(',', ' ').split(" ");
|
||||||
|
|
||||||
SyndCategoryImpl tag;
|
SyndCategoryImpl tag;
|
||||||
String part;
|
String part;
|
||||||
|
|
|
@ -65,7 +65,7 @@ class LocalProperties {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static String keyToEnv(final String key) {
|
private static String keyToEnv(final String key) {
|
||||||
return key.replace("-", "_").toUpperCase(Constants.LOCALE);
|
return key.replace('-', '_').toUpperCase(Constants.LOCALE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@BeforeSuite(alwaysRun = true)
|
@BeforeSuite(alwaysRun = true)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue