![JAR search and dependency download from the Maven repository](/logo.png)
ru.fix.aggregating.profiler.engine.NameNormalizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aggregating-profiler Show documentation
Show all versions of aggregating-profiler Show documentation
https://github.com/ru-fix/aggregating-profiler
package ru.fix.aggregating.profiler.engine;
public class NameNormalizer {
public static String trimDots(String s) {
if (s == null) {
throw new NullPointerException("Given null instead of string");
}
s = s.trim();
if (s.startsWith(".")) {
s = s.substring(1);
}
if (s.endsWith(".")) {
s = s.substring(0, s.length() - 1);
}
return s;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy