25
25
import me .itzg .helpers .modrinth .model .Version ;
26
26
import me .itzg .helpers .modrinth .model .VersionFile ;
27
27
import me .itzg .helpers .modrinth .model .VersionType ;
28
- import org .jetbrains .annotations .Nullable ;
29
28
import reactor .core .publisher .Mono ;
30
29
import reactor .core .scheduler .Schedulers ;
31
30
@@ -39,7 +38,7 @@ public ModrinthApiClient(String baseUrl, String command, Options options) {
39
38
sharedFetch = Fetch .sharedFetch (command , options );
40
39
}
41
40
42
- public static VersionFile pickVersionFile (Version version ) {
41
+ static VersionFile pickVersionFile (Version version ) {
43
42
if (version .getFiles ().size () == 1 ) {
44
43
return version .getFiles ().get (0 );
45
44
}
@@ -115,7 +114,7 @@ public Mono<List<ResolvedProject>> bulkGetProjects(Stream<ProjectRef> projectRef
115
114
* @param gameVersion can be null for any
116
115
*/
117
116
public Mono <Version > resolveProjectVersion (Project project , ProjectRef projectRef ,
118
- @ Nullable Loader loader , String gameVersion ,
117
+ Loader loader , String gameVersion ,
119
118
VersionType defaultVersionType ) {
120
119
if (projectRef .hasVersionName ()) {
121
120
return getVersionsForProject (project .getId (), loader , gameVersion )
@@ -162,7 +161,7 @@ public Mono<Path> downloadMrPack(VersionFile versionFile) {
162
161
* @param gameVersion can be null for any
163
162
*/
164
163
public Mono <List <Version >> getVersionsForProject (String projectIdOrSlug ,
165
- @ Nullable Loader loader , String gameVersion
164
+ Loader loader , String gameVersion
166
165
) {
167
166
return sharedFetch .fetch (
168
167
uriBuilder .resolve ("/v2/project/{id|slug}/version" ,
0 commit comments