Merge remote-tracking branch 'origin/master'

This commit is contained in:
Owain van Brakel
2019-11-03 02:23:59 +01:00
2 changed files with 2 additions and 2 deletions

View File

@@ -58,7 +58,7 @@ public class ClientSessionManager
} }
@Schedule(period = 10, unit = ChronoUnit.MINUTES, asynchronous = true) @Schedule(period = 10, unit = ChronoUnit.MINUTES, asynchronous = true)
private void ping() public void ping()
{ {
if (sessionId == null) if (sessionId == null)
{ {

View File

@@ -62,7 +62,7 @@ public class Scheduler
public void registerObject(Object obj) public void registerObject(Object obj)
{ {
for (Method method : obj.getClass().getMethods()) for (Method method : obj.getClass().getDeclaredMethods())
{ {
Schedule schedule = method.getAnnotation(Schedule.class); Schedule schedule = method.getAnnotation(Schedule.class);
if (schedule == null) if (schedule == null)