performance: improve speed of comparing UriTypes

This commit is contained in:
Gerlach, Winfried 2020-10-07 19:36:03 +02:00
parent 1f583d6ba7
commit 0cb038ed0a
5 changed files with 157 additions and 142 deletions

View File

@ -152,6 +152,9 @@ public class UriType extends PrimitiveType<String> {
if (getValue() == null || other.getValue() == null) {
return false;
}
if (getValue().equals(other.getValue())) {
return true;
}
String normalize = normalize(getValue());
String normalize2 = normalize(other.getValue());

View File

@ -153,6 +153,9 @@ public class UriType extends PrimitiveType<String> {
if (getValue() == null || other.getValue() == null) {
return false;
}
if (getValue().equals(other.getValue())) {
return true;
}
String normalize = normalize(getValue());
String normalize2 = normalize(other.getValue());

View File

@ -153,6 +153,9 @@ public class UriType extends PrimitiveType<String> {
if (getValue() == null || other.getValue() == null) {
return false;
}
if (getValue().equals(other.getValue())) {
return true;
}
String normalize = normalize(getValue());
String normalize2 = normalize(other.getValue());

View File

@ -155,6 +155,9 @@ public class UriType extends PrimitiveType<String> {
if (getValue() == null || other.getValue() == null) {
return false;
}
if (getValue().equals(other.getValue())) {
return true;
}
String normalize = normalize(getValue());
String normalize2 = normalize(other.getValue());

View File

@ -155,6 +155,9 @@ public class UriType extends PrimitiveType<String> {
if (getValue() == null || other.getValue() == null) {
return false;
}
if (getValue().equals(other.getValue())) {
return true;
}
String normalize = normalize(getValue());
String normalize2 = normalize(other.getValue());