From 896af516b0028ff2a26cc1888dfaba620d3fe9e0 Mon Sep 17 00:00:00 2001 From: Michal Kordas Date: Thu, 27 Aug 2015 00:02:21 +0200 Subject: [PATCH] Remove unnecessary this keyword. #1555 Fixes `UnnecessaryThis` inspection violations. Description: >Reports on any unnecessary uses of this in the code. Using this to disambiguate a code reference may easily become unnecessary via automatic refactorings, and is discouraged by many coding styles. --- .../java/com/puppycrawl/tools/checkstyle/api/Comment.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/puppycrawl/tools/checkstyle/api/Comment.java b/src/main/java/com/puppycrawl/tools/checkstyle/api/Comment.java index 62f84258b..15583f27b 100644 --- a/src/main/java/com/puppycrawl/tools/checkstyle/api/Comment.java +++ b/src/main/java/com/puppycrawl/tools/checkstyle/api/Comment.java @@ -52,9 +52,9 @@ public class Comment implements TextBlock { this.text = new String[text.length]; System.arraycopy(text, 0, this.text, 0, this.text.length); startLineNo = lastLine - this.text.length + 1; - this.endLineNo = lastLine; - this.startColNo = firstCol; - this.endColNo = lastCol; + endLineNo = lastLine; + startColNo = firstCol; + endColNo = lastCol; } @Override