Skip to content

Commit 3c298f8

Browse files
committed
Version 6.3.1
Site updated: - Deprecated HYDROGENBOTS_CLUB Minor Javadoc corrections
1 parent b8c8641 commit 3c298f8

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ plugins{
99
id 'net.kyori.blossom' version '1.1.0'
1010
}
1111

12-
def ver = new Version(major: 6, minor: 3, patch: 0)
12+
def ver = new Version(major: 6, minor: 3, patch: 1)
1313

1414
allprojects {
1515
apply plugin: 'com.jfrog.bintray'

core/src/main/java/org/botblock/javabotblockapi/core/Site.java

+22-1
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,13 @@ public class Site{
164164

165165
/**
166166
* <a href="https://hydrogenbots.club" target="_blank">hydrogenbots.club</a>
167+
*
168+
* @deprecated Domain redirects to a weird foreign store.
167169
*/
168-
public static final Site HYDROGENBOTS_CLUB = new Site("hydrogenbots.club", HttpMethod.GET, HttpMethod.POST);
170+
@Deprecated
171+
@DeprecatedSince(major = 6, minor = 3, patch = 1)
172+
@PlannedRemoval(major = 6, minor = 3, patch = 3)
173+
public static final Site HYDROGENBOTS_CLUB = new Site("hydrogenbots.club");
169174

170175
/**
171176
* <a href="https://infinitybotlist.com" target="_blank">infinitybotlist.com</a>
@@ -215,14 +220,30 @@ private Site(String name){
215220
this.methods = new ArrayList<>();
216221
}
217222

223+
/**
224+
* The name used by the BotBlock API to identify the site.
225+
* <br>The name usually is just the domain of the site without the http(s):// in front of it.
226+
*
227+
* @return The name of the site used for the BotBlock API.
228+
*/
218229
public String getName(){
219230
return name;
220231
}
221232

233+
/**
234+
* Whether the site supports GET requests towards itself or not.
235+
*
236+
* @return True if the site supports GET request, otherwise false.
237+
*/
222238
public boolean supportsGet(){
223239
return !methods.isEmpty() && methods.contains(HttpMethod.GET);
224240
}
225241

242+
/**
243+
* Whether the site supports POST requests towards itself or not.
244+
*
245+
* @return True if the site supports POST request, otherwise false.
246+
*/
226247
public boolean supportsPost(){
227248
return !methods.isEmpty() && methods.contains(HttpMethod.POST);
228249
}

core/src/main/java/org/botblock/javabotblockapi/core/annotations/PlannedRemoval.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@
2525
* <br>This is paired with the {@link java.lang.Deprecated Deprecated} and
2626
* {@link org.botblock.javabotblockapi.core.annotations.DeprecatedSince DeprecatedSince} annotations.
2727
*
28-
* <p>This annotation will always contain the {@link #major() major}, {@link #minor()} and {@link #patch() patch} version
28+
* <p>This annotation will always contain the {@link #major() major}, {@link #minor() minor} and {@link #patch() patch} version
2929
* in which the annotated Object will be removed.
30-
* <br>For example will {@code @PlannedRemoval(major = 6, minor = 5, patch = 0)} indocate an Object for removal on version
30+
* <br>For example will {@code @PlannedRemoval(major = 6, minor = 5, patch = 0)} indicate an Object for removal on version
3131
* 6.5.0.
3232
*
3333
* @since 5.2.2

0 commit comments

Comments
 (0)