Skip to content

Commit

Permalink
Sonar-Warnungen reduziert
Browse files Browse the repository at this point in the history
  • Loading branch information
oboehm committed Dec 16, 2018
1 parent 6f7de54 commit db00b8a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
5 changes: 2 additions & 3 deletions README.md
@@ -1,7 +1,6 @@
[![Build Status](https://travis-ci.org/oboehm/jfachwert.svg?branch=develop)](https://travis-ci.org/oboehm/jfachwert)
[![Coverage Status](https://coveralls.io/repos/github/oboehm/jfachwert/badge.svg?branch=develop)](https://coveralls.io/github/oboehm/jfachwert)
[![Coverage Status](https://coveralls.io/repos/github/oboehm/jfachwert/badge.svg?branch=master)](https://coveralls.io/github/oboehm/jfachwert)
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/de.jfachwert/jfachwert/badge.svg)](https://maven-badges.herokuapp.com/maven-central/de.jfachwert/jfachwert)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?metric=alert_status&project=de.jfachwert:jfachwert)](https://sonarcloud.io/dashboard?id=de.jfachwert%3Ajfachwert%3Adevelop)
[![Quality Gate](https://sonarcloud.io/api/project_badges/measure?metric=alert_status&project=de.jfachwert:jfachwert)](https://sonarcloud.io/dashboard?id=de.jfachwert%3Ajfachwert)
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0.html)

# Was ist jFachwert?
Expand Down
6 changes: 3 additions & 3 deletions src/main/java/de/jfachwert/net/Telefonnummer.java
Expand Up @@ -135,7 +135,7 @@ public String getVorwahl() {
if (vorwahl.startsWith("+")) {
vorwahl = StringUtils.isBlank(parts[1]) ? parts[2] : parts[1];
}
vorwahl = StringUtils.removeAll(vorwahl, "[ \t+-/(\\(\\))]");
vorwahl = RegExUtils.removeAll(vorwahl, "[ \t+-/(\\(\\))]");
if (vorwahl.startsWith("0")) {
return vorwahl;
}
Expand All @@ -149,7 +149,7 @@ public String getVorwahl() {
* @return z.B. "32168"
*/
public Telefonnummer getRufnummer() {
String inlandsnummer = StringUtils.replaceAll(this.getInlandsnummer().toString(), "[ /]+", " ");
String inlandsnummer = RegExUtils.replaceAll(this.getInlandsnummer().toString(), "[ /]+", " ");
return new Telefonnummer(StringUtils.substringAfter(inlandsnummer, " ").replaceAll(" ", ""));
}

Expand Down Expand Up @@ -187,7 +187,7 @@ public boolean equals(Object obj) {
* @return z.B. "+49301234567"
*/
public String toShortString() {
return StringUtils.removeAll(getCode(), "[ \t+-/]|(\\(0\\))");
return RegExUtils.removeAll(getCode(), "[ \t+-/]|(\\(0\\))");
}

/**
Expand Down
Expand Up @@ -9,6 +9,7 @@
* @author <a href="ob@aosd.de">oliver</a>
* @since 1.0.1 (12.10.18)
*/
@SuppressWarnings("squid:MaximumInheritanceDepth")
public class LocalizedMonetaryParseException extends MonetaryParseException implements LocalizedException {

private final Throwable cause;
Expand Down

0 comments on commit db00b8a

Please sign in to comment.