A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pmd/pmd/commit/5b7ed588ea15961e5909f7c24fca1c4cbb914a52 below:

Make CPD end column exclusive · pmd/pmd@5b7ed58 · GitHub

File tree Expand file treeCollapse file tree 88 files changed

+16858

-16862

lines changed

Filter options

Expand file treeCollapse file tree 88 files changed

+16858

-16862

lines changed Original file line number Diff line number Diff line change

@@ -55,9 +55,10 @@ public void emitErrorMessage(String msg) {

55 55

if (!caseSensitive) {

56 56

tokenText = tokenText.toLowerCase(Locale.ROOT);

57 57

}

58 -

TokenEntry tokenEntry = new TokenEntry(tokenText, sourceCode.getFileName(), token.getLine(),

58 +

TokenEntry tokenEntry = new TokenEntry(tokenText, sourceCode.getFileName(),

59 +

token.getLine(),

59 60

token.getCharPositionInLine() + 1,

60 -

token.getCharPositionInLine() + tokenText.length());

61 +

token.getCharPositionInLine() + tokenText.length() + 1);

61 62

tokenEntries.add(tokenEntry);

62 63

}

63 64

token = lexer.nextToken();

Original file line number Diff line number Diff line change

@@ -1,35 +1,35 @@

1 1

[Image] or [Truncated image[ Bcol Ecol

2 2

L4

3 -

[public] 1 6

4 -

[with] 8 11

5 -

[sharing] 13 19

6 -

[class] 21 25

7 -

[simple] 27 32

8 -

[{] 34 34

3 +

[public] 1 7

4 +

[with] 8 12

5 +

[sharing] 13 20

6 +

[class] 21 26

7 +

[simple] 27 33

8 +

[{] 34 35

9 9

L5

10 -

[public] 5 10

11 -

[string] 12 17

12 -

[someparam] 19 27

13 -

[{] 29 29

14 -

[get] 31 33

15 -

[;] 34 34

16 -

[set] 36 38

17 -

[;] 39 39

18 -

[}] 41 41

10 +

[public] 5 11

11 +

[string] 12 18

12 +

[someparam] 19 28

13 +

[{] 29 30

14 +

[get] 31 34

15 +

[;] 34 35

16 +

[set] 36 39

17 +

[;] 39 40

18 +

[}] 41 42

19 19

L7

20 -

[public] 5 10

21 -

[void] 12 15

22 -

[getinit] 17 23

23 -

[(] 24 24

24 -

[)] 25 25

25 -

[{] 27 27

20 +

[public] 5 11

21 +

[void] 12 16

22 +

[getinit] 17 24

23 +

[(] 24 25

24 +

[)] 25 26

25 +

[{] 27 28

26 26

L8

27 -

[someparam] 9 17

28 -

[=] 19 19

29 -

[test] 22 25

30 -

[;] 27 27

27 +

[someparam] 9 18

28 +

[=] 19 20

29 +

[test] 22 26

30 +

[;] 27 28

31 31

L9

32 -

[}] 5 5

32 +

[}] 5 6

33 33

L10

34 -

[}] 1 1

34 +

[}] 1 2

35 35

EOF

Original file line number Diff line number Diff line change

@@ -1,35 +1,35 @@

1 1

[Image] or [Truncated image[ Bcol Ecol

2 2

L4

3 -

[public] 1 6

4 -

[with] 8 11

5 -

[sharing] 13 19

6 -

[class] 21 25

7 -

[Simple] 27 32

8 -

[{] 34 34

3 +

[public] 1 7

4 +

[with] 8 12

5 +

[sharing] 13 20

6 +

[class] 21 26

7 +

[Simple] 27 33

8 +

[{] 34 35

9 9

L5

10 -

[public] 5 10

11 -

[String] 12 17

12 -

[someParam] 19 27

13 -

[{] 29 29

14 -

[get] 31 33

15 -

[;] 34 34

16 -

[set] 36 38

17 -

[;] 39 39

18 -

[}] 41 41

10 +

[public] 5 11

11 +

[String] 12 18

12 +

[someParam] 19 28

13 +

[{] 29 30

14 +

[get] 31 34

15 +

[;] 34 35

16 +

[set] 36 39

17 +

[;] 39 40

18 +

[}] 41 42

19 19

L7

20 -

[public] 5 10

21 -

[void] 12 15

22 -

[getInit] 17 23

23 -

[(] 24 24

24 -

[)] 25 25

25 -

[{] 27 27

20 +

[public] 5 11

21 +

[void] 12 16

22 +

[getInit] 17 24

23 +

[(] 24 25

24 +

[)] 25 26

25 +

[{] 27 28

26 26

L8

27 -

[someParam] 9 17

28 -

[=] 19 19

29 -

[test] 22 25

30 -

[;] 27 27

27 +

[someParam] 9 18

28 +

[=] 19 20

29 +

[test] 22 26

30 +

[;] 27 28

31 31

L9

32 -

[}] 5 5

32 +

[}] 5 6

33 33

L10

34 -

[}] 1 1

34 +

[}] 1 2

35 35

EOF

Original file line number Diff line number Diff line change

@@ -1,21 +1,21 @@

1 1

[Image] or [Truncated image[ Bcol Ecol

2 2

L8

3 -

[public] 1 6

4 -

[with] 8 11

5 -

[sharing] 13 19

6 -

[class] 21 25

7 -

[sfdcencoderconstants] 27 46

8 -

[{] 48 48

3 +

[public] 1 7

4 +

[with] 8 12

5 +

[sharing] 13 20

6 +

[class] 21 26

7 +

[sfdcencoderconstants] 27 47

8 +

[{] 48 49

9 9

L12

10 -

[public] 2 7

11 -

[string] 9 14

12 -

[someparam] 16 24

13 -

[{] 26 26

14 -

[get] 28 30

15 -

[;] 31 31

16 -

[set] 33 35

17 -

[;] 36 36

18 -

[}] 38 38

10 +

[public] 2 8

11 +

[string] 9 15

12 +

[someparam] 16 25

13 +

[{] 26 27

14 +

[get] 28 31

15 +

[;] 31 32

16 +

[set] 33 36

17 +

[;] 36 37

18 +

[}] 38 39

19 19

L13

20 -

[}] 1 1

20 +

[}] 1 2

21 21

EOF

Original file line number Diff line number Diff line change

@@ -67,7 +67,7 @@ public void tokenize(SourceCode tokens, Tokens tokenEntries) {

67 67

tokens.getFileName(),

68 68

tokBeginLine + 1,

69 69

tokBeginCol + 1,

70 -

loc));

70 +

loc + 1));

71 71

}

72 72

}

73 73

}

Original file line number Diff line number Diff line change

@@ -101,7 +101,7 @@ private void computeEndCoords() {

101 101

// fast path for single char tokens

102 102

if (image.charAt(0) != '\n') {

103 103

this.endline = getBeginLine();

104 -

this.endcolumn = getBeginColumn();

104 +

this.endcolumn = getBeginColumn() + 1;

105 105

return;

106 106

}

107 107

}

@@ -126,14 +126,14 @@ private void computeEndCoords() {

126 126

// single line token

127 127

this.endline = this.getBeginLine();

128 128

int length = 1 + token.getStopIndex() - token.getStartIndex();

129 -

this.endcolumn = token.getCharPositionInLine() + length;

129 +

this.endcolumn = token.getCharPositionInLine() + length + 1;

130 130

} else if (lastOffset < image.length()) {

131 131

this.endline = this.getBeginLine() + numNls;

132 -

this.endcolumn = image.length() - lastOffset;

132 +

this.endcolumn = image.length() - lastOffset + 1;

133 133

} else {

134 134

// ends with a newline, the newline is considered part of the previous line

135 135

this.endline = this.getBeginLine() + numNls - 1;

136 -

this.endcolumn = lastLineLen;

136 +

this.endcolumn = lastLineLen + 1;

137 137

}

138 138

}

139 139

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4