[#7732] XJC generated classes should compare Pattern.pattern() in generated equals() and hashCode() methods

This commit is contained in:
lukaseder 2018-08-08 14:46:58 +02:00
parent 4a85b87484
commit 3f4f0cafa9
2 changed files with 2 additions and 2 deletions

View File

@ -258,7 +258,7 @@ public class MappedSchema
final int prime = 31;
int result = 1;
result = ((prime*result)+((input == null)? 0 :input.hashCode()));
result = ((prime*result)+((inputExpression == null)? 0 :inputExpression.hashCode()));
result = ((prime*result)+((inputExpression == null)? 0 :inputExpression.pattern().hashCode()));
result = ((prime*result)+((output == null)? 0 :output.hashCode()));
result = ((prime*result)+((tables == null)? 0 :tables.hashCode()));
return result;

View File

@ -204,7 +204,7 @@ public class MappedTable
final int prime = 31;
int result = 1;
result = ((prime*result)+((input == null)? 0 :input.hashCode()));
result = ((prime*result)+((inputExpression == null)? 0 :inputExpression.hashCode()));
result = ((prime*result)+((inputExpression == null)? 0 :inputExpression.pattern().hashCode()));
result = ((prime*result)+((output == null)? 0 :output.hashCode()));
return result;
}