Browse Source

Get rid of nice, useful J8 method.

Change-Id: I6453c289eece5c6da8a2900e11a2bd4a6f5baafc
Reviewed-on: http://gerrit.dmdirc.com/3505
Reviewed-by: Greg Holmes <greg@dmdirc.com>
Automatic-Compile: DMDirc Build Manager
changes/05/3505/3
Chris Smith 10 years ago
parent
commit
446ab2b5a9
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/com/dmdirc/addons/debug/commands/EventBusViewer.java

+ 1
- 1
src/com/dmdirc/addons/debug/commands/EventBusViewer.java View File

@@ -139,7 +139,7 @@ public class EventBusViewer extends DebugCommand {
139 139
                     .append(Styliser.CODE_BOLD);
140 140
 
141 141
             for (Method method : event.getClass().getMethods()) {
142
-                if (method.getName().startsWith("get") && method.getParameterCount() == 0) {
142
+                if (method.getName().startsWith("get") && method.getParameterTypes().length == 0) {
143 143
                     try {
144 144
                         output.append(' ')
145 145
                                 .append(Styliser.CODE_UNDERLINE)

Loading…
Cancel
Save