Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -624,7 +624,7 @@ public class ${this.mangleTypeIdentifier($schema.getName())} extends ${this.getS
#foreach ($field in $schema.getFields())
#if (!${this.ignoredField($field)})
#set ($n = ${this.mangle($field.name(), $schema.isError())})
result = 31 * result + ${this.hashCodeFor($field.schema(), $n)};
result = 31 * result + ${this.hashCodeFor($field.schema(), "this." + $n)};
#end
#end
return result;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -665,12 +665,12 @@ public FieldTest build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + Integer.hashCode(number);
result = 31 * result + (last_name == null ? 0 : last_name.hashCode());
result = 31 * result + (timestamp == null ? 0 : timestamp.hashCode());
result = 31 * result + (timestampMicros == null ? 0 : timestampMicros.hashCode());
result = 31 * result + (timeMillis == null ? 0 : timeMillis.hashCode());
result = 31 * result + (timeMicros == null ? 0 : timeMicros.hashCode());
result = 31 * result + Integer.hashCode(this.number);
result = 31 * result + (this.last_name == null ? 0 : this.last_name.hashCode());
result = 31 * result + (this.timestamp == null ? 0 : this.timestamp.hashCode());
result = 31 * result + (this.timestampMicros == null ? 0 : this.timestampMicros.hashCode());
result = 31 * result + (this.timeMillis == null ? 0 : this.timeMillis.hashCode());
result = 31 * result + (this.timeMicros == null ? 0 : this.timeMicros.hashCode());
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,10 @@ public JSpecifyNullSafeAnnotationsFieldsTest build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + (name == null ? 0 : name.hashCode());
result = 31 * result + (nullable_name == null ? 0 : nullable_name.hashCode());
result = 31 * result + Integer.hashCode(favorite_number);
result = 31 * result + (nullable_favorite_number == null ? 0 : nullable_favorite_number.hashCode());
result = 31 * result + (this.name == null ? 0 : this.name.hashCode());
result = 31 * result + (this.nullable_name == null ? 0 : this.nullable_name.hashCode());
result = 31 * result + Integer.hashCode(this.favorite_number);
result = 31 * result + (this.nullable_favorite_number == null ? 0 : this.nullable_favorite_number.hashCode());
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -585,10 +585,10 @@ public JetBrainsNullSafeAnnotationsFieldsTest build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + (name == null ? 0 : name.hashCode());
result = 31 * result + (nullable_name == null ? 0 : nullable_name.hashCode());
result = 31 * result + Integer.hashCode(favorite_number);
result = 31 * result + (nullable_favorite_number == null ? 0 : nullable_favorite_number.hashCode());
result = 31 * result + (this.name == null ? 0 : this.name.hashCode());
result = 31 * result + (this.nullable_name == null ? 0 : this.nullable_name.hashCode());
result = 31 * result + Integer.hashCode(this.favorite_number);
result = 31 * result + (this.nullable_favorite_number == null ? 0 : this.nullable_favorite_number.hashCode());
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,10 @@ public Player build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + Integer.hashCode(number);
result = 31 * result + (first_name == null ? 0 : first_name.hashCode());
result = 31 * result + (last_name == null ? 0 : last_name.hashCode());
result = 31 * result + (position == null ? 0 : position.hashCode());
result = 31 * result + Integer.hashCode(this.number);
result = 31 * result + (this.first_name == null ? 0 : this.first_name.hashCode());
result = 31 * result + (this.last_name == null ? 0 : this.last_name.hashCode());
result = 31 * result + (this.position == null ? 0 : this.position.hashCode());
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,8 +434,8 @@ public AddExtraOptionalGettersTest build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + (name == null ? 0 : name.hashCode());
result = 31 * result + (favorite_number == null ? 0 : favorite_number.hashCode());
result = 31 * result + (this.name == null ? 0 : this.name.hashCode());
result = 31 * result + (this.favorite_number == null ? 0 : this.favorite_number.hashCode());
return result;
}

Expand Down
4 changes: 2 additions & 2 deletions lang/java/tools/src/test/compiler/output/NoSettersTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -392,8 +392,8 @@ public NoSettersTest build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + (name == null ? 0 : name.hashCode());
result = 31 * result + (favorite_number == null ? 0 : favorite_number.hashCode());
result = 31 * result + (this.name == null ? 0 : this.name.hashCode());
result = 31 * result + (this.favorite_number == null ? 0 : this.favorite_number.hashCode());
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -497,10 +497,10 @@ public OptionalGettersAllFieldsTest build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + (name == null ? 0 : name.hashCode());
result = 31 * result + (nullable_name == null ? 0 : nullable_name.hashCode());
result = 31 * result + (favorite_number == null ? 0 : favorite_number.hashCode());
result = 31 * result + (nullable_favorite_number == null ? 0 : nullable_favorite_number.hashCode());
result = 31 * result + (this.name == null ? 0 : this.name.hashCode());
result = 31 * result + (this.nullable_name == null ? 0 : this.nullable_name.hashCode());
result = 31 * result + (this.favorite_number == null ? 0 : this.favorite_number.hashCode());
result = 31 * result + (this.nullable_favorite_number == null ? 0 : this.nullable_favorite_number.hashCode());
return result;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,11 @@ public OptionalGettersNullableFieldsTest build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + (name == null ? 0 : name.hashCode());
result = 31 * result + (nullable_name == null ? 0 : nullable_name.hashCode());
result = 31 * result + (favorite_number == null ? 0 : favorite_number.hashCode());
result = 31 * result + (nullable_favorite_number == null ? 0 : nullable_favorite_number.hashCode());
result = 31 * result + (nullable_array == null ? 0 : nullable_array.hashCode());
result = 31 * result + (this.name == null ? 0 : this.name.hashCode());
result = 31 * result + (this.nullable_name == null ? 0 : this.nullable_name.hashCode());
result = 31 * result + (this.favorite_number == null ? 0 : this.favorite_number.hashCode());
result = 31 * result + (this.nullable_favorite_number == null ? 0 : this.nullable_favorite_number.hashCode());
result = 31 * result + (this.nullable_array == null ? 0 : this.nullable_array.hashCode());
return result;
}

Expand Down
8 changes: 4 additions & 4 deletions lang/java/tools/src/test/compiler/output/Player.java
Original file line number Diff line number Diff line change
Expand Up @@ -593,10 +593,10 @@ public Player build() {
@Override
public int hashCode() {
int result = 1;
result = 31 * result + Integer.hashCode(number);
result = 31 * result + (first_name == null ? 0 : first_name.hashCode());
result = 31 * result + (last_name == null ? 0 : last_name.hashCode());
result = 31 * result + (position == null ? 0 : position.hashCode());
result = 31 * result + Integer.hashCode(this.number);
result = 31 * result + (this.first_name == null ? 0 : this.first_name.hashCode());
result = 31 * result + (this.last_name == null ? 0 : this.last_name.hashCode());
result = 31 * result + (this.position == null ? 0 : this.position.hashCode());
return result;
}

Expand Down