Skip to content

Commit 1016b5a

Browse files
committed
Fix Warning: dynamic exception ...
1 parent 1e1b5d0 commit 1016b5a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

library/Java/Lang/Object/Object.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ namespace Java {
233233
* be cloned.
234234
* @see java.lang.Cloneable
235235
*/
236-
Object &clone() throw (CloneNotSupportedException) {
236+
Object &clone() {
237237
throw CloneNotSupportedException();
238238
}
239239

@@ -284,7 +284,7 @@ namespace Java {
284284
*
285285
* @throws Throwable the {@code Exception} raised by this method
286286
*/
287-
void finalize() throw(Throwable);
287+
void finalize();
288288

289289
public:
290290
/**
@@ -389,7 +389,7 @@ namespace Java {
389389
* @see java.lang.Object#notify()
390390
* @see java.lang.Object#notifyAll()
391391
*/
392-
virtual void wait() throw(InterruptedException) final {
392+
virtual void wait() final {
393393
throw InterruptedException();
394394
}
395395

@@ -478,7 +478,7 @@ namespace Java {
478478
* @see java.lang.Object#notify()
479479
* @see java.lang.Object#notifyAll()
480480
*/
481-
virtual void wait(int timeout) throw(InterruptedException) final {
481+
virtual void wait(int timeout) final {
482482
throw InterruptedException();
483483
}
484484

@@ -544,7 +544,7 @@ namespace Java {
544544
* status</i> of the current thread is cleared when
545545
* this exception is thrown.
546546
*/
547-
virtual void wait(int timeout, int nanos) throw(InterruptedException) final {
547+
virtual void wait(int timeout, int nanos) final {
548548
throw InterruptedException();
549549
}
550550

0 commit comments

Comments
 (0)