Skip to content

Commit

Permalink
Adds nullable annotations to constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Dziemianczyk committed Mar 14, 2024
1 parent caad094 commit 6567475
Show file tree
Hide file tree
Showing 1,362 changed files with 1,374 additions and 1,368 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class SetProfilePhotoArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SetProfilePhotoArg(PhotoSourceArg photo) {
public SetProfilePhotoArg(@javax.annotation.Nonnull PhotoSourceArg photo) {
if (photo == null) {
throw new IllegalArgumentException("Required value for 'photo' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class SetProfilePhotoResult {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SetProfilePhotoResult(String profilePhotoUrl) {
public SetProfilePhotoResult(@javax.annotation.Nonnull String profilePhotoUrl) {
if (profilePhotoUrl == null) {
throw new IllegalArgumentException("Required value for 'profilePhotoUrl' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class PollArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PollArg(String asyncJobId) {
public PollArg(@javax.annotation.Nonnull String asyncJobId) {
if (asyncJobId == null) {
throw new IllegalArgumentException("Required value for 'asyncJobId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class RateLimitError {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public RateLimitError(RateLimitReason reason, long retryAfter) {
public RateLimitError(@javax.annotation.Nonnull RateLimitReason reason, long retryAfter) {
if (reason == null) {
throw new IllegalArgumentException("Required value for 'reason' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class TokenFromOAuth1Arg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public TokenFromOAuth1Arg(String oauth1Token, String oauth1TokenSecret) {
public TokenFromOAuth1Arg(@javax.annotation.Nonnull String oauth1Token, @javax.annotation.Nonnull String oauth1TokenSecret) {
if (oauth1Token == null) {
throw new IllegalArgumentException("Required value for 'oauth1Token' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class TokenFromOAuth1Result {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public TokenFromOAuth1Result(String oauth2Token) {
public TokenFromOAuth1Result(@javax.annotation.Nonnull String oauth2Token) {
if (oauth2Token == null) {
throw new IllegalArgumentException("Required value for 'oauth2Token' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class TokenScopeError {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public TokenScopeError(String requiredScope) {
public TokenScopeError(@javax.annotation.Nonnull String requiredScope) {
if (requiredScope == null) {
throw new IllegalArgumentException("Required value for 'requiredScope' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class EchoArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public EchoArg(String query) {
public EchoArg(@javax.annotation.Nonnull String query) {
if (query == null) {
throw new IllegalArgumentException("Required value for 'query' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class EchoResult {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public EchoResult(String result) {
public EchoResult(@javax.annotation.Nonnull String result) {
if (result == null) {
throw new IllegalArgumentException("Required value for 'result' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public class RootInfo {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public RootInfo(String rootNamespaceId, String homeNamespaceId) {
public RootInfo(@javax.annotation.Nonnull String rootNamespaceId, @javax.annotation.Nonnull String homeNamespaceId) {
if (rootNamespaceId == null) {
throw new IllegalArgumentException("Required value for 'rootNamespaceId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class TeamRootInfo extends RootInfo {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public TeamRootInfo(String rootNamespaceId, String homeNamespaceId, String homePath) {
public TeamRootInfo(@javax.annotation.Nonnull String rootNamespaceId, @javax.annotation.Nonnull String homeNamespaceId, @javax.annotation.Nonnull String homePath) {
super(rootNamespaceId, homeNamespaceId);
if (homePath == null) {
throw new IllegalArgumentException("Required value for 'homePath' is null");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public class UserRootInfo extends RootInfo {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public UserRootInfo(String rootNamespaceId, String homeNamespaceId) {
public UserRootInfo(@javax.annotation.Nonnull String rootNamespaceId, @javax.annotation.Nonnull String homeNamespaceId) {
super(rootNamespaceId, homeNamespaceId);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class DeleteManualContactsArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DeleteManualContactsArg(List<String> emailAddresses) {
public DeleteManualContactsArg(@javax.annotation.Nonnull List<String> emailAddresses) {
if (emailAddresses == null) {
throw new IllegalArgumentException("Required value for 'emailAddresses' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class AddPropertiesArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public AddPropertiesArg(String path, List<PropertyGroup> propertyGroups) {
public AddPropertiesArg(@javax.annotation.Nonnull String path, @javax.annotation.Nonnull List<PropertyGroup> propertyGroups) {
if (path == null) {
throw new IllegalArgumentException("Required value for 'path' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class AddTemplateArg extends PropertyGroupTemplate {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public AddTemplateArg(String name, String description, List<PropertyFieldTemplate> fields) {
public AddTemplateArg(@javax.annotation.Nonnull String name, @javax.annotation.Nonnull String description, @javax.annotation.Nonnull List<PropertyFieldTemplate> fields) {
super(name, description, fields);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class AddTemplateResult {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public AddTemplateResult(String templateId) {
public AddTemplateResult(@javax.annotation.Nonnull String templateId) {
if (templateId == null) {
throw new IllegalArgumentException("Required value for 'templateId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class GetTemplateArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public GetTemplateArg(String templateId) {
public GetTemplateArg(@javax.annotation.Nonnull String templateId) {
if (templateId == null) {
throw new IllegalArgumentException("Required value for 'templateId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class GetTemplateResult extends PropertyGroupTemplate {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public GetTemplateResult(String name, String description, List<PropertyFieldTemplate> fields) {
public GetTemplateResult(@javax.annotation.Nonnull String name, @javax.annotation.Nonnull String description, @javax.annotation.Nonnull List<PropertyFieldTemplate> fields) {
super(name, description, fields);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class ListTemplateResult {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ListTemplateResult(List<String> templateIds) {
public ListTemplateResult(@javax.annotation.Nonnull List<String> templateIds) {
if (templateIds == null) {
throw new IllegalArgumentException("Required value for 'templateIds' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class OverwritePropertyGroupArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public OverwritePropertyGroupArg(String path, List<PropertyGroup> propertyGroups) {
public OverwritePropertyGroupArg(@javax.annotation.Nonnull String path, @javax.annotation.Nonnull List<PropertyGroup> propertyGroups) {
if (path == null) {
throw new IllegalArgumentException("Required value for 'path' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class PropertiesSearchArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertiesSearchArg(List<PropertiesSearchQuery> queries, TemplateFilter templateFilter) {
public PropertiesSearchArg(@javax.annotation.Nonnull List<PropertiesSearchQuery> queries, @javax.annotation.Nonnull TemplateFilter templateFilter) {
if (queries == null) {
throw new IllegalArgumentException("Required value for 'queries' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class PropertiesSearchContinueArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertiesSearchContinueArg(String cursor) {
public PropertiesSearchContinueArg(@javax.annotation.Nonnull String cursor) {
if (cursor == null) {
throw new IllegalArgumentException("Required value for 'cursor' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PropertiesSearchMatch {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertiesSearchMatch(String id, String path, boolean isDeleted, List<PropertyGroup> propertyGroups) {
public PropertiesSearchMatch(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull String path, boolean isDeleted, @javax.annotation.Nonnull List<PropertyGroup> propertyGroups) {
if (id == null) {
throw new IllegalArgumentException("Required value for 'id' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class PropertiesSearchQuery {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertiesSearchQuery(String query, PropertiesSearchMode mode, LogicalOperator logicalOperator) {
public PropertiesSearchQuery(@javax.annotation.Nonnull String query, @javax.annotation.Nonnull PropertiesSearchMode mode, @javax.annotation.Nonnull LogicalOperator logicalOperator) {
if (query == null) {
throw new IllegalArgumentException("Required value for 'query' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class PropertiesSearchResult {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertiesSearchResult(List<PropertiesSearchMatch> matches, String cursor) {
public PropertiesSearchResult(@javax.annotation.Nonnull List<PropertiesSearchMatch> matches, @javax.annotation.Nullable String cursor) {
if (matches == null) {
throw new IllegalArgumentException("Required value for 'matches' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class PropertyField {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertyField(String name, String value) {
public PropertyField(@javax.annotation.Nonnull String name, @javax.annotation.Nonnull String value) {
if (name == null) {
throw new IllegalArgumentException("Required value for 'name' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class PropertyFieldTemplate {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertyFieldTemplate(String name, String description, PropertyType type) {
public PropertyFieldTemplate(@javax.annotation.Nonnull String name, @javax.annotation.Nonnull String description, @javax.annotation.Nonnull PropertyType type) {
if (name == null) {
throw new IllegalArgumentException("Required value for 'name' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class PropertyGroup {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertyGroup(String templateId, List<PropertyField> fields) {
public PropertyGroup(@javax.annotation.Nonnull String templateId, @javax.annotation.Nonnull List<PropertyField> fields) {
if (templateId == null) {
throw new IllegalArgumentException("Required value for 'templateId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class PropertyGroupTemplate {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertyGroupTemplate(String name, String description, List<PropertyFieldTemplate> fields) {
public PropertyGroupTemplate(@javax.annotation.Nonnull String name, @javax.annotation.Nonnull String description, @javax.annotation.Nonnull List<PropertyFieldTemplate> fields) {
if (name == null) {
throw new IllegalArgumentException("Required value for 'name' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class PropertyGroupUpdate {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertyGroupUpdate(String templateId, List<PropertyField> addOrUpdateFields, List<String> removeFields) {
public PropertyGroupUpdate(@javax.annotation.Nonnull String templateId, @javax.annotation.Nullable List<PropertyField> addOrUpdateFields, @javax.annotation.Nullable List<String> removeFields) {
if (templateId == null) {
throw new IllegalArgumentException("Required value for 'templateId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public class RemovePropertiesArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public RemovePropertiesArg(String path, List<String> propertyTemplateIds) {
public RemovePropertiesArg(@javax.annotation.Nonnull String path, @javax.annotation.Nonnull List<String> propertyTemplateIds) {
if (path == null) {
throw new IllegalArgumentException("Required value for 'path' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class RemoveTemplateArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public RemoveTemplateArg(String templateId) {
public RemoveTemplateArg(@javax.annotation.Nonnull String templateId) {
if (templateId == null) {
throw new IllegalArgumentException("Required value for 'templateId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public class UpdatePropertiesArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public UpdatePropertiesArg(String path, List<PropertyGroupUpdate> updatePropertyGroups) {
public UpdatePropertiesArg(@javax.annotation.Nonnull String path, @javax.annotation.Nonnull List<PropertyGroupUpdate> updatePropertyGroups) {
if (path == null) {
throw new IllegalArgumentException("Required value for 'path' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public class UpdateTemplateArg {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public UpdateTemplateArg(String templateId, String name, String description, List<PropertyFieldTemplate> addFields) {
public UpdateTemplateArg(@javax.annotation.Nonnull String templateId, @javax.annotation.Nullable String name, @javax.annotation.Nullable String description, @javax.annotation.Nullable List<PropertyFieldTemplate> addFields) {
if (templateId == null) {
throw new IllegalArgumentException("Required value for 'templateId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class UpdateTemplateResult {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public UpdateTemplateResult(String templateId) {
public UpdateTemplateResult(@javax.annotation.Nonnull String templateId) {
if (templateId == null) {
throw new IllegalArgumentException("Required value for 'templateId' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class CreateFileRequestArgs {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public CreateFileRequestArgs(String title, String destination, FileRequestDeadline deadline, boolean open, String description) {
public CreateFileRequestArgs(@javax.annotation.Nonnull String title, @javax.annotation.Nonnull String destination, @javax.annotation.Nullable FileRequestDeadline deadline, boolean open, @javax.annotation.Nullable String description) {
if (title == null) {
throw new IllegalArgumentException("Required value for 'title' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class DeleteAllClosedFileRequestsResult {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DeleteAllClosedFileRequestsResult(List<FileRequest> fileRequests) {
public DeleteAllClosedFileRequestsResult(@javax.annotation.Nonnull List<FileRequest> fileRequests) {
if (fileRequests == null) {
throw new IllegalArgumentException("Required value for 'fileRequests' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class DeleteFileRequestArgs {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DeleteFileRequestArgs(List<String> ids) {
public DeleteFileRequestArgs(@javax.annotation.Nonnull List<String> ids) {
if (ids == null) {
throw new IllegalArgumentException("Required value for 'ids' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class DeleteFileRequestsResult {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DeleteFileRequestsResult(List<FileRequest> fileRequests) {
public DeleteFileRequestsResult(@javax.annotation.Nonnull List<FileRequest> fileRequests) {
if (fileRequests == null) {
throw new IllegalArgumentException("Required value for 'fileRequests' is null");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public class FileRequest {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public FileRequest(String id, String url, String title, Date created, boolean isOpen, long fileCount, String destination, FileRequestDeadline deadline, String description) {
public FileRequest(@javax.annotation.Nonnull String id, @javax.annotation.Nonnull String url, @javax.annotation.Nonnull String title, @javax.annotation.Nonnull Date created, boolean isOpen, long fileCount, @javax.annotation.Nullable String destination, @javax.annotation.Nullable FileRequestDeadline deadline, @javax.annotation.Nullable String description) {
if (id == null) {
throw new IllegalArgumentException("Required value for 'id' is null");
}
Expand Down
Loading

0 comments on commit 6567475

Please sign in to comment.