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

box / box-java-sdk-gen / #295

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

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%)

11794 existing lines in 627 files now uncovered.

16937 of 47495 relevant lines covered (35.66%)

0.36 hits per line

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

17.86
/src/main/java/com/box/sdkgen/schemas/fileversionbase/FileVersionBase.java
1
package com.box.sdkgen.schemas.fileversionbase;
2

3
import com.box.sdkgen.internal.NullableFieldTracker;
4
import com.box.sdkgen.internal.SerializableObject;
5
import com.box.sdkgen.serialization.json.EnumWrapper;
6
import com.fasterxml.jackson.annotation.JsonFilter;
7
import com.fasterxml.jackson.annotation.JsonProperty;
8
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
9
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
10
import java.util.Objects;
11

12
@JsonFilter("nullablePropertyFilter")
13
public class FileVersionBase extends SerializableObject {
14

15
  protected final String id;
16

17
  @JsonDeserialize(using = FileVersionBaseTypeField.FileVersionBaseTypeFieldDeserializer.class)
18
  @JsonSerialize(using = FileVersionBaseTypeField.FileVersionBaseTypeFieldSerializer.class)
19
  protected EnumWrapper<FileVersionBaseTypeField> type;
20

21
  public FileVersionBase(@JsonProperty("id") String id) {
22
    super();
1✔
23
    this.id = id;
1✔
24
    this.type = new EnumWrapper<FileVersionBaseTypeField>(FileVersionBaseTypeField.FILE_VERSION);
1✔
25
  }
1✔
26

27
  protected FileVersionBase(Builder builder) {
28
    super();
×
UNCOV
29
    this.id = builder.id;
×
UNCOV
30
    this.type = builder.type;
×
UNCOV
31
    markNullableFieldsAsSet(builder.getExplicitlySetNullableFields());
×
UNCOV
32
  }
×
33

34
  public String getId() {
35
    return id;
1✔
36
  }
37

38
  public EnumWrapper<FileVersionBaseTypeField> getType() {
UNCOV
39
    return type;
×
40
  }
41

42
  @Override
43
  public boolean equals(Object o) {
44
    if (this == o) {
×
UNCOV
45
      return true;
×
46
    }
47
    if (o == null || getClass() != o.getClass()) {
×
UNCOV
48
      return false;
×
49
    }
UNCOV
50
    FileVersionBase casted = (FileVersionBase) o;
×
UNCOV
51
    return Objects.equals(id, casted.id) && Objects.equals(type, casted.type);
×
52
  }
53

54
  @Override
55
  public int hashCode() {
UNCOV
56
    return Objects.hash(id, type);
×
57
  }
58

59
  @Override
60
  public String toString() {
UNCOV
61
    return "FileVersionBase{" + "id='" + id + '\'' + ", " + "type='" + type + '\'' + "}";
×
62
  }
63

64
  public static class Builder extends NullableFieldTracker {
65

66
    protected final String id;
67

68
    protected EnumWrapper<FileVersionBaseTypeField> type;
69

70
    public Builder(String id) {
UNCOV
71
      super();
×
72
      this.id = id;
×
73
      this.type = new EnumWrapper<FileVersionBaseTypeField>(FileVersionBaseTypeField.FILE_VERSION);
×
UNCOV
74
    }
×
75

76
    public Builder type(FileVersionBaseTypeField type) {
77
      this.type = new EnumWrapper<FileVersionBaseTypeField>(type);
×
78
      return this;
×
79
    }
80

81
    public Builder type(EnumWrapper<FileVersionBaseTypeField> type) {
82
      this.type = type;
×
UNCOV
83
      return this;
×
84
    }
85

86
    public FileVersionBase build() {
UNCOV
87
      return new FileVersionBase(this);
×
88
    }
89
  }
90
}
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