Skip to content

Commit

Permalink
Fix typos in error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Querela committed Sep 4, 2024
1 parent e5561b5 commit c2579f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/eu/clarin/sru/client/fcs/DataView.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public String getMimeType() {
*/
public boolean isMimeType(String type) {
if (type == null) {
throw new NullPointerException("mimetype == null");
throw new NullPointerException("type == null");
}
return (this.type.equals(type));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ protected Layer(String id, List<Span> spans) {
}
this.id = id;
if (spans == null) {
throw new NullPointerException("span == null");
throw new NullPointerException("spans == null");
}
if (spans.isEmpty()) {
throw new IllegalArgumentException("spans is empty");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/eu/clarin/sru/client/fcs/DataViewHits.java
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ protected DataViewHits(String pid, String ref, String text,
}
this.offsets = offsets;
if (offsets_idx < 0) {
throw new IllegalArgumentException("offset_idx < 0");
throw new IllegalArgumentException("offsets_idx < 0");
}
if (offsets_idx > offsets.length) {
throw new IllegalArgumentException("offset_idx > offsets.length");
throw new IllegalArgumentException("offsets_idx > offsets.length");
}
this.max_offset = (offsets_idx / 2);
}
Expand Down

0 comments on commit c2579f1

Please sign in to comment.