Add static to Query stop and isStarted methods (#1867)

This commit is contained in:
Hydrogen 2023-06-04 14:58:34 +03:00 committed by GitHub
parent 9b15acf4fa
commit 954e8b3915
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -95,7 +95,7 @@ public class Query {
*
* @return {@code true} if the query system was stopped, {@code false} if it was not running
*/
public boolean stop() {
public static boolean stop() {
if (!started) {
return false;
} else {
@ -118,7 +118,7 @@ public class Query {
*
* @return {@code true} if it has been started, {@code false} otherwise
*/
public boolean isStarted() {
public static boolean isStarted() {
return started;
}