From 5a46bdbeeadb368fba5c78c6c3bfc772a579a86a Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Mon, 31 Aug 2015 23:17:56 +0200 Subject: [PATCH] Issue #1555: Remove unnecessary unboxing Fixes `UnnecessaryUnboxing` inspection violations. Description: >Reports "unboxing", e.g. explicit unwrapping of wrapped primitive values. Unboxing is unnecessary under Java 5 and newer, and can be safely removed. This inspection only reports if the project or module is configured to use a language level of 5.0 or higher. --- .../tools/checkstyle/checks/TrailingCommentCheck.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheck.java b/src/main/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheck.java index 835a2c871..d7659779d 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheck.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/checks/TrailingCommentCheck.java @@ -179,7 +179,7 @@ public class TrailingCommentCheck extends AbstractFormatCheck { } if (!blankLinePattern.matcher(lineBefore).find() && !isLegalComment(comment)) { - log(lineNo.intValue(), MSG_KEY); + log(lineNo, MSG_KEY); } } }