Skip to content

Commit

Permalink
Tweak.
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak committed Aug 17, 2023
1 parent 872ef40 commit 8238b35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lang/java/avro/src/main/java/org/apache/avro/Schema.java
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ public Name(String name, String space) {
space = name.substring(0, lastDot); // get space from name
this.name = validateName(name.substring(lastDot + 1));
}
this.space = "".equals(space) || space == null ? null : validateSpace(space);
this.space = space == null || space.isEmpty() ? null : validateSpace(space);
this.full = (this.space == null) ? this.name : this.space + "." + this.name;
}

Expand Down

0 comments on commit 8238b35

Please sign in to comment.