performance: improve speed of comparing UriTypes
This commit is contained in:
parent
1f583d6ba7
commit
0cb038ed0a
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue