Skip to content

Commit

Permalink
#709: fixes after review
Browse files Browse the repository at this point in the history
  • Loading branch information
vkuchyn committed May 31, 2016
1 parent e488c53 commit db7d9de
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@
import com.puppycrawl.tools.checkstyle.api.TokenTypes;

/**
* Checks that try-with-resources does not end with a semicolon.
* Checks that try-with-resources does not end with a semicolon. Implementation
* relies on existence of semicolon inside of RESOURCE_SPECIFICATION token
* as interpreted by Checkstyle.
*
* @author Hamdi Douss (douss.hamdi@gmail.com)
* @version $Id$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ private void checkClass(final DetailAST node) {
/**
* Checks order of methods.
*
* @param methods Iterable<DetailAST> methods
* @param methods @code{Iterable<DetailAST>} methods
*/
private void checkOrder(final Iterable<DetailAST> methods) {
MethodsOrderCheck.Modifiers prev = MethodsOrderCheck.Modifiers.PUB;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ public void rejectsNonDiamondOperatorUsage() throws Exception {
* CheckstyleValidator can allow diamond operator usage.
* @throws Exception If error
* @todo #715:30min add test for next situation
* `return new ArrayList&lt;String&gt;();`
* `return @code{new ArrayList<String>();}`
*/
@Test
public void allowsDiamondOperatorUsage() throws Exception {
Expand Down

0 comments on commit db7d9de

Please sign in to comment.