Browse Source

Remove return value from call()

pull/47/head
Chris Smith 9 years ago
parent
commit
e533d21d3c

+ 1
- 7
common/src/com/dmdirc/parser/common/CallbackObject.java View File

@@ -138,11 +138,8 @@ public class CallbackObject {
138 138
      * specified in the callback's interface, or an error will be raised.
139 139
      *
140 140
      * @param args The arguments to pass to the callback implementation
141
-     * @return True if a method was called, false otherwise
142 141
      */
143
-    public boolean call(final Object... args) {
144
-        boolean bResult = false;
145
-
142
+    public void call(final Object... args) {
146 143
         createFakeArgs(args);
147 144
 
148 145
         for (CallbackInterface iface : callbackInfo) {
@@ -161,10 +158,7 @@ public class CallbackObject {
161 158
                     callErrorInfo(ei);
162 159
                 }
163 160
             }
164
-            bResult = true;
165 161
         }
166
-
167
-        return bResult;
168 162
     }
169 163
 
170 164
     /**

+ 1
- 5
common/src/com/dmdirc/parser/common/CallbackObjectSpecific.java View File

@@ -135,9 +135,7 @@ public class CallbackObjectSpecific extends CallbackObject {
135 135
     }
136 136
 
137 137
     @Override
138
-    public boolean call(final Object... args) {
139
-        boolean bResult = false;
140
-
138
+    public void call(final Object... args) {
141 139
         createFakeArgs(args);
142 140
 
143 141
         for (CallbackInterface iface : new ArrayList<>(callbackInfo)) {
@@ -162,8 +160,6 @@ public class CallbackObjectSpecific extends CallbackObject {
162 160
                 ei.setException(e);
163 161
                 callErrorInfo(ei);
164 162
             }
165
-            bResult = true;
166 163
         }
167
-        return bResult;
168 164
     }
169 165
 }

Loading…
Cancel
Save