Skip to content

Commit

Permalink
Issue checkstyle#3555: Suppressed errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Kytsmen committed Jul 5, 2017
1 parent 2a4c34b commit 7311e75
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Expand Up @@ -43,6 +43,7 @@ public class CodeSelectorPresentation {
* Constructor.
* @param ast ast node.
* @param lines2position list to map lines.
* @noinspection AssignmentToCollectionOrArrayFieldFromParameter
*/
public CodeSelectorPresentation(DetailAST ast, List<Integer> lines2position) {
node = ast;
Expand All @@ -53,6 +54,7 @@ public CodeSelectorPresentation(DetailAST ast, List<Integer> lines2position) {
* Constructor.
* @param node DetailNode node.
* @param lines2position list to map lines.
* @noinspection AssignmentToCollectionOrArrayFieldFromParameter
*/
public CodeSelectorPresentation(DetailNode node, List<Integer> lines2position) {
this.node = node;
Expand Down
Expand Up @@ -176,6 +176,7 @@ public File getCurrentFile() {
* prevent additional overhead of copying
* and possible state modifications.
* @return lines to position map.
* @noinspection ReturnOfCollectionOrArrayField
*/
public ImmutableList<Integer> getLinesToPosition() {
return linesToPosition;
Expand Down Expand Up @@ -220,7 +221,7 @@ public void openFile(File file) throws CheckstyleException {
linesToPositionTemp.add(sb.length());
sb.append(element).append(System.lineSeparator());
}
this.linesToPosition = ImmutableList.copyOf(linesToPositionTemp);
linesToPosition = ImmutableList.copyOf(linesToPositionTemp);
text = sb.toString();
}
catch (IOException | ANTLRException ex) {
Expand Down
Expand Up @@ -230,6 +230,7 @@ public void setEditor(JTextArea textArea) {
/**
* Sets line position map.
* @param linePositionMap Line position map.
* @noinspection AssignmentToCollectionOrArrayFieldFromParameter
*/
public void setLinePositionMap(List<Integer> linePositionMap) {
this.linePositionMap = linePositionMap;
Expand Down

0 comments on commit 7311e75

Please sign in to comment.