Skip to content
This repository was archived by the owner on Jul 22, 2024. It is now read-only.

Commit 5cb4695

Browse files
committed
removed non null annotation for dependencies
1 parent 55e6e6c commit 5cb4695

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

ClassySharkWS/src/com/google/classyshark/updater/models/Release.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
import com.google.classyshark.Version;
2020
import com.google.classyshark.updater.networking.GitHubApi;
2121
import com.google.gson.annotations.SerializedName;
22-
import com.sun.istack.internal.Nullable;
2322

2423
/**
2524
* This class represents the response that GitHub returns when queried with {@link GitHubApi#getLatestRelease()}.
@@ -36,7 +35,7 @@ public class Release {
3635
private final ReleaseDownloadData[] assets;
3736
@SerializedName("created_at")
3837
private final String createdAt;
39-
38+
4039
private Release(String name, boolean preRelease, String body, ReleaseDownloadData[] assets, String createdAt) {
4140
this.name = name;
4241
this.preRelease = preRelease;
@@ -86,7 +85,6 @@ public boolean isNewerThan(Release other) {
8685
getMajorVersion() == other.getMajorVersion() && getMinorVersion() > other.getMinorVersion();
8786
}
8887

89-
@Nullable
9088
public String getDownloadURL() {
9189
if (assets != null && assets.length > 0) {
9290
return assets[0].getURL();

ClassySharkWS/src/com/google/classyshark/updater/utils/NamingUtils.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@
1717
package com.google.classyshark.updater.utils;
1818

1919
import com.google.classyshark.updater.models.Release;
20-
import com.sun.istack.internal.NotNull;
21-
2220
import java.io.File;
2321
import java.nio.file.Paths;
2422

@@ -29,7 +27,7 @@ public class NamingUtils {
2927

3028
final String FILENAME = "ClassyShark.jar";
3129

32-
static String buildNameFrom(@NotNull Release release) {
30+
static String buildNameFrom(Release release) {
3331
String[] creationDates = release.getCreatedAt().split("T");
3432
String timeStamp = "";
3533
if (creationDates.length > 0) {

0 commit comments

Comments
 (0)