Skip to content

Commit

Permalink
removing lambda sample to fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Turini committed Mar 9, 2015
1 parent d967f62 commit de6d4e3
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions vraptor-core/src/main/java/br/com/caelum/vraptor/core/Try.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,7 @@
*
* Use the static method Try#run to instantiate this class, passing down
* the dangerous code and use its methods to retrieve the result or the exception
* of your computation. Example using java 8:
*
* <code>
* Try try = Try.run(() -> someDangerousMethod());
* if (try.failed()) {
* Exception e = try.getException();
* handleError(e);
* }
* try.result(); //do something with the result
* </code>
* of your computation.
*
* @author Chico Sokol
* @param <T> the type of the result of your computation
Expand Down

0 comments on commit de6d4e3

Please sign in to comment.