Skip to content

Commit

Permalink
codacy cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jmacxx committed Aug 24, 2021
1 parent 6243459 commit a69a746
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
4 changes: 4 additions & 0 deletions common/src/main/java/bisq/common/util/Utilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -591,4 +591,8 @@ public static String formatDurationAsWords(long durationMillis) {
}
return result;
}

public static String cleanString(String string) {
return string.replaceAll("[\\t\\n\\r]+", " ");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@

import java.util.function.Consumer;

import static bisq.common.util.Utilities.cleanString;
import static bisq.desktop.util.FormBuilder.*;
import static bisq.core.payment.payload.SwiftAccountPayload.*;

Expand Down Expand Up @@ -357,8 +358,4 @@ private void setIntermediaryCountry(Country country) {
private void setTradeCurrency(TradeCurrency tradeCurrency) {
paymentAccount.setSingleTradeCurrency(tradeCurrency);
}

private static String cleanString(String L) {
return L.replaceAll("[\\t\\n\\r]+"," ");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@

import javafx.geometry.Insets;

import static bisq.common.util.Utilities.cleanString;
import static bisq.desktop.util.FormBuilder.*;
import static bisq.core.payment.payload.SwiftAccountPayload.*;

Expand Down Expand Up @@ -99,8 +100,4 @@ private void addContent() {
hide();
});
}

private static String cleanString(String L) {
return L.replaceAll("[\\t\\n\\r]+"," ");
}
}

0 comments on commit a69a746

Please sign in to comment.