Skip to content

Commit

Permalink
Add nullable annotation to additional constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
Walter Dziemianczyk committed Mar 14, 2024
1 parent c1e1d13 commit b129ca5
Show file tree
Hide file tree
Showing 285 changed files with 285 additions and 285 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public RateLimitError(@Nonnull RateLimitReason reason, long retryAfter) {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public RateLimitError(RateLimitReason reason) {
public RateLimitError(@Nonnull RateLimitReason reason) {
this(reason, 1L);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public PropertiesSearchArg(@Nonnull List<PropertiesSearchQuery> queries, @Nonnul
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertiesSearchArg(List<PropertiesSearchQuery> queries) {
public PropertiesSearchArg(@Nonnull List<PropertiesSearchQuery> queries) {
this(queries, TemplateFilter.FILTER_NONE);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public PropertiesSearchQuery(@Nonnull String query, @Nonnull PropertiesSearchMod
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertiesSearchQuery(String query, PropertiesSearchMode mode) {
public PropertiesSearchQuery(@Nonnull String query, @Nonnull PropertiesSearchMode mode) {
this(query, mode, LogicalOperator.OR_OPERATOR);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public PropertiesSearchResult(@Nonnull List<PropertiesSearchMatch> matches, @Nul
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertiesSearchResult(List<PropertiesSearchMatch> matches) {
public PropertiesSearchResult(@Nonnull List<PropertiesSearchMatch> matches) {
this(matches, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public PropertyGroupUpdate(@Nonnull String templateId, @Nullable List<PropertyFi
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PropertyGroupUpdate(String templateId) {
public PropertyGroupUpdate(@Nonnull String templateId) {
this(templateId, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public UpdateTemplateArg(@Nonnull String templateId, @Nullable String name, @Nul
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public UpdateTemplateArg(String templateId) {
public UpdateTemplateArg(@Nonnull String templateId) {
this(templateId, null, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public CreateFileRequestArgs(@Nonnull String title, @Nonnull String destination,
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public CreateFileRequestArgs(String title, String destination) {
public CreateFileRequestArgs(@Nonnull String title, @Nonnull String destination) {
this(title, destination, null, true, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public FileRequest(@Nonnull String id, @Nonnull String url, @Nonnull String titl
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public FileRequest(String id, String url, String title, Date created, boolean isOpen, long fileCount) {
public FileRequest(@Nonnull String id, @Nonnull String url, @Nonnull String title, @Nonnull Date created, boolean isOpen, long fileCount) {
this(id, url, title, created, isOpen, fileCount, null, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public FileRequestDeadline(@Nonnull Date deadline, @Nullable GracePeriod allowLa
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public FileRequestDeadline(Date deadline) {
public FileRequestDeadline(@Nonnull Date deadline) {
this(deadline, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public UpdateFileRequestArgs(@Nonnull String id, @Nullable String title, @Nullab
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public UpdateFileRequestArgs(String id) {
public UpdateFileRequestArgs(@Nonnull String id) {
this(id, null, null, UpdateFileRequestDeadline.NO_UPDATE, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public AlphaGetMetadataArg(@Nonnull String path, boolean includeMediaInfo, boole
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public AlphaGetMetadataArg(String path) {
public AlphaGetMetadataArg(@Nonnull String path) {
this(path, false, false, false, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public CommitInfo(@Nonnull String path, @Nonnull WriteMode mode, boolean autoren
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public CommitInfo(String path) {
public CommitInfo(@Nonnull String path) {
this(path, WriteMode.ADD, false, null, false, null, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public CreateFolderArg(@Nonnull String path, boolean autorename) {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public CreateFolderArg(String path) {
public CreateFolderArg(@Nonnull String path) {
this(path, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public CreateFolderBatchArg(@Nonnull List<String> paths, boolean autorename, boo
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public CreateFolderBatchArg(List<String> paths) {
public CreateFolderBatchArg(@Nonnull List<String> paths) {
this(paths, false, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public DeleteArg(@Nonnull String path, @Nullable String parentRev) {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DeleteArg(String path) {
public DeleteArg(@Nonnull String path) {
this(path, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public DeletedMetadata(@Nonnull String name, @Nullable String pathLower, @Nullab
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DeletedMetadata(String name) {
public DeletedMetadata(@Nonnull String name) {
this(name, null, null, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public DownloadArg(@Nonnull String path, @Nullable String rev) {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public DownloadArg(String path) {
public DownloadArg(@Nonnull String path) {
this(path, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public ExportArg(@Nonnull String path, @Nullable String exportFormat) {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ExportArg(String path) {
public ExportArg(@Nonnull String path) {
this(path, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ public ExportMetadata(@Nonnull String name, long size, @Nullable String exportHa
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ExportMetadata(String name, long size) {
public ExportMetadata(@Nonnull String name, long size) {
this(name, size, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public FileMetadata(@Nonnull String name, @Nonnull String id, @Nonnull Date clie
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public FileMetadata(String name, String id, Date clientModified, Date serverModified, String rev, long size) {
public FileMetadata(@Nonnull String name, @Nonnull String id, @Nonnull Date clientModified, @Nonnull Date serverModified, @Nonnull String rev, long size) {
this(name, id, clientModified, serverModified, rev, size, null, null, null, null, null, null, null, true, null, null, null, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public FileSharingInfo(boolean readOnly, @Nonnull String parentSharedFolderId, @
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public FileSharingInfo(boolean readOnly, String parentSharedFolderId) {
public FileSharingInfo(boolean readOnly, @Nonnull String parentSharedFolderId) {
this(readOnly, parentSharedFolderId, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public FolderMetadata(@Nonnull String name, @Nonnull String id, @Nullable String
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public FolderMetadata(String name, String id) {
public FolderMetadata(@Nonnull String name, @Nonnull String id) {
this(name, id, null, null, null, null, null, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public GetMetadataArg(@Nonnull String path, boolean includeMediaInfo, boolean in
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public GetMetadataArg(String path) {
public GetMetadataArg(@Nonnull String path) {
this(path, false, false, false, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public GetTemporaryUploadLinkArg(@Nonnull CommitInfo commitInfo, double duration
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public GetTemporaryUploadLinkArg(CommitInfo commitInfo) {
public GetTemporaryUploadLinkArg(@Nonnull CommitInfo commitInfo) {
this(commitInfo, 14400.0);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public ListFolderArg(@Nonnull String path, boolean recursive, boolean includeMed
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ListFolderArg(String path) {
public ListFolderArg(@Nonnull String path) {
this(path, false, false, false, false, true, null, null, null, true);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public ListFolderLongpollArg(@Nonnull String cursor, long timeout) {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ListFolderLongpollArg(String cursor) {
public ListFolderLongpollArg(@Nonnull String cursor) {
this(cursor, 30L);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public ListRevisionsArg(@Nonnull String path, @Nonnull ListRevisionsMode mode, l
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ListRevisionsArg(String path) {
public ListRevisionsArg(@Nonnull String path) {
this(path, ListRevisionsMode.PATH, 10L);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public ListRevisionsResult(boolean isDeleted, @Nonnull List<FileMetadata> entrie
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ListRevisionsResult(boolean isDeleted, List<FileMetadata> entries) {
public ListRevisionsResult(boolean isDeleted, @Nonnull List<FileMetadata> entries) {
this(isDeleted, entries, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public Metadata(@Nonnull String name, @Nullable String pathLower, @Nullable Stri
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public Metadata(String name) {
public Metadata(@Nonnull String name) {
this(name, null, null, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public MinimalFileLinkMetadata(@Nonnull String url, @Nonnull String rev, @Nullab
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public MinimalFileLinkMetadata(String url, String rev) {
public MinimalFileLinkMetadata(@Nonnull String url, @Nonnull String rev) {
this(url, rev, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public MoveBatchArg(@Nonnull List<RelocationPath> entries, boolean autorename, b
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public MoveBatchArg(List<RelocationPath> entries) {
public MoveBatchArg(@Nonnull List<RelocationPath> entries) {
this(entries, false, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public PaperUpdateArg(@Nonnull String path, @Nonnull ImportFormat importFormat,
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PaperUpdateArg(String path, ImportFormat importFormat, PaperDocUpdatePolicy docUpdatePolicy) {
public PaperUpdateArg(@Nonnull String path, @Nonnull ImportFormat importFormat, @Nonnull PaperDocUpdatePolicy docUpdatePolicy) {
this(path, importFormat, docUpdatePolicy, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public PreviewArg(@Nonnull String path, @Nullable String rev) {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public PreviewArg(String path) {
public PreviewArg(@Nonnull String path) {
this(path, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public RelocationArg(@Nonnull String fromPath, @Nonnull String toPath, boolean a
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public RelocationArg(String fromPath, String toPath) {
public RelocationArg(@Nonnull String fromPath, @Nonnull String toPath) {
this(fromPath, toPath, false, false, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public RelocationBatchArg(@Nonnull List<RelocationPath> entries, boolean autoren
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public RelocationBatchArg(List<RelocationPath> entries) {
public RelocationBatchArg(@Nonnull List<RelocationPath> entries) {
this(entries, false, false, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public RelocationBatchArgBase(@Nonnull List<RelocationPath> entries, boolean aut
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public RelocationBatchArgBase(List<RelocationPath> entries) {
public RelocationBatchArgBase(@Nonnull List<RelocationPath> entries) {
this(entries, false);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public SearchArg(@Nonnull String path, @Nonnull String query, long start, long m
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SearchArg(String path, String query) {
public SearchArg(@Nonnull String path, @Nonnull String query) {
this(path, query, 0L, 100L, SearchMode.FILENAME);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public SearchMatchV2(@Nonnull MetadataV2 metadata, @Nullable SearchMatchTypeV2 m
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SearchMatchV2(MetadataV2 metadata) {
public SearchMatchV2(@Nonnull MetadataV2 metadata) {
this(metadata, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public SearchV2Arg(@Nonnull String query, @Nullable SearchOptions options, @Null
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SearchV2Arg(String query) {
public SearchV2Arg(@Nonnull String query) {
this(query, null, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public SearchV2Result(@Nonnull List<SearchMatchV2> matches, boolean hasMore, @Nu
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SearchV2Result(List<SearchMatchV2> matches, boolean hasMore) {
public SearchV2Result(@Nonnull List<SearchMatchV2> matches, boolean hasMore) {
this(matches, hasMore, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public SharedLink(@Nonnull String url, @Nullable String password) {
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SharedLink(String url) {
public SharedLink(@Nonnull String url) {
this(url, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public SharedLinkFileInfo(@Nonnull String url, @Nullable String path, @Nullable
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SharedLinkFileInfo(String url) {
public SharedLinkFileInfo(@Nonnull String url) {
this(url, null, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public SingleUserLock(Date created, String lockHolderAccountId) {
public SingleUserLock(@Nonnull Date created, @Nonnull String lockHolderAccountId) {
this(created, lockHolderAccountId, null);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public ThumbnailArg(@Nonnull String path, @Nonnull ThumbnailFormat format, @Nonn
* @throws IllegalArgumentException If any argument does not meet its
* preconditions.
*/
public ThumbnailArg(String path) {
public ThumbnailArg(@Nonnull String path) {
this(path, ThumbnailFormat.JPEG, ThumbnailSize.W64H64, ThumbnailMode.STRICT);
}

Expand Down
Loading

0 comments on commit b129ca5

Please sign in to comment.