You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@reef.apache.org by "Dongjoon Hyun (JIRA)" <ji...@apache.org> on 2015/10/17 04:19:05 UTC

[jira] [Created] (REEF-855) Use InterruptedException instead of Exception for Thread.sleep() in Tang examples

Dongjoon Hyun created REEF-855:
----------------------------------

             Summary: Use InterruptedException instead of Exception for Thread.sleep() in Tang examples
                 Key: REEF-855
                 URL: https://issues.apache.org/jira/browse/REEF-855
             Project: REEF
          Issue Type: Task
          Components: Tang
    Affects Versions: 0.13
            Reporter: Dongjoon Hyun
            Assignee: Dongjoon Hyun
            Priority: Trivial


In our website and codes, Tang examples use a mixed use of both InterruptedException and Exception for java.lang.Thread.sleep().

* InterruptedException
Timer.java
TimerV1.java

* Exception
TimerImpl.java
TimerMock.java
tang.md (and also http://reef.incubator.apache.org/tang.html)

Since it's our website example, it would be better if we use more specific exception type like the following.

```
- public static void main(final String[] args) throws BindException, InjectionException, Exception {
+ public static void main(final String[] args) throws BindException, InjectionException, InterruptedException {
```



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)