Skip to content
This repository was archived by the owner on Oct 28, 2025. It is now read-only.

Commit 8279986

Browse files
committed
Set default values in constructors
1 parent 54e0629 commit 8279986

2 files changed

Lines changed: 12 additions & 6 deletions

File tree

src/main/java/com/thebluealliance/api/v3/models/Match.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ public class Match extends SimpleMatch {
1111
ScoreBreakdown score_breakdown;
1212
Media[] videos;
1313

14-
public Match(long post_result_time, ScoreBreakdown score_breakdown, Media[] videos) throws IllegalAccessException {
14+
public Match() {
1515
super(0, 0, null, null, null, null, 0, 0, 0, null);
16-
throw new IllegalAccessException("bitch why ru calling this");
16+
post_result_time = 0;
17+
score_breakdown = null;
18+
videos = null;
1719
}
1820

1921
}

src/main/java/com/thebluealliance/api/v3/models/Team.java

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
package com.thebluealliance.api.v3.models;
22

3-
import java.util.HashMap;
4-
53
import lombok.EqualsAndHashCode;
64
import lombok.Value;
75

6+
import java.util.HashMap;
7+
88
/**
99
* Represents a FIRST Robotics Competition team
1010
*/
1111
@EqualsAndHashCode(callSuper = true)
1212
@Value
1313
public class Team extends SimpleTeam {
1414

15-
Team() throws IllegalAccessException {
15+
Team() {
1616
super(null, null, null, null, null, null, 0);
17-
throw new IllegalAccessException("You've called the constructor of Team");
17+
postal_code = null;
18+
website = null;
19+
motto = null;
20+
rookie_year = 0;
21+
home_championship = null;
1822
}
1923

2024
/**

0 commit comments

Comments
 (0)