• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

box / box-java-sdk-gen / #294

24 Jun 2025 01:20PM UTC coverage: 35.662% (+0.03%) from 35.632%
#294

Pull #347

github

web-flow
Merge 2c100d09c into d8480ee6c
Pull Request #347: feat: Add Webhook Validation In Java (box/box-codegen#745)

68 of 82 new or added lines in 2 files covered. (82.93%)

11791 existing lines in 624 files now uncovered.

16939 of 47499 relevant lines covered (35.66%)

0.36 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

7.69
/src/main/java/com/box/sdkgen/schemas/fileversionmini/FileVersionMini.java
1
package com.box.sdkgen.schemas.fileversionmini;
2

3
import com.box.sdkgen.schemas.fileversionbase.FileVersionBase;
4
import com.box.sdkgen.schemas.fileversionbase.FileVersionBaseTypeField;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import java.util.Objects;
9

10
@JsonFilter("nullablePropertyFilter")
11
public class FileVersionMini extends FileVersionBase {
12

13
  protected String sha1;
14

15
  public FileVersionMini(@JsonProperty("id") String id) {
16
    super(id);
1✔
17
  }
1✔
18

19
  protected FileVersionMini(Builder builder) {
20
    super(builder);
×
UNCOV
21
    this.sha1 = builder.sha1;
×
UNCOV
22
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
23
  }
×
24

25
  public String getSha1() {
UNCOV
26
    return sha1;
×
27
  }
28

29
  @Override
30
  public boolean equals(Object o) {
31
    if (this == o) {
×
32
      return true;
×
33
    }
34
    if (o == null || getClass() != o.getClass()) {
×
35
      return false;
×
36
    }
37
    FileVersionMini casted = (FileVersionMini) o;
×
UNCOV
38
    return Objects.equals(id, casted.id)
×
UNCOV
39
        && Objects.equals(type, casted.type)
×
UNCOV
40
        && Objects.equals(sha1, casted.sha1);
×
41
  }
42

43
  @Override
44
  public int hashCode() {
UNCOV
45
    return Objects.hash(id, type, sha1);
×
46
  }
47

48
  @Override
49
  public String toString() {
UNCOV
50
    return "FileVersionMini{"
×
51
        + "id='"
52
        + id
53
        + '\''
54
        + ", "
55
        + "type='"
56
        + type
57
        + '\''
58
        + ", "
59
        + "sha1='"
60
        + sha1
61
        + '\''
62
        + "}";
63
  }
64

65
  public static class Builder extends FileVersionBase.Builder {
66

67
    protected String sha1;
68

69
    public Builder(String id) {
UNCOV
70
      super(id);
×
71
    }
×
72

73
    public Builder sha1(String sha1) {
UNCOV
74
      this.sha1 = sha1;
×
UNCOV
75
      return this;
×
76
    }
77

78
    @Override
79
    public Builder type(FileVersionBaseTypeField type) {
UNCOV
80
      this.type = new EnumWrapper<FileVersionBaseTypeField>(type);
×
UNCOV
81
      return this;
×
82
    }
83

84
    @Override
85
    public Builder type(EnumWrapper<FileVersionBaseTypeField> type) {
UNCOV
86
      this.type = type;
×
UNCOV
87
      return this;
×
88
    }
89

90
    public FileVersionMini build() {
UNCOV
91
      return new FileVersionMini(this);
×
92
    }
93
  }
94
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc