summaryrefslogtreecommitdiff
path: root/plugins/InspectionGadgets/test/com/siyeh/igtest/numeric/pointless_arithmetic_expression/expected.xml
blob: f6af12237ea080b31cf78f512ad0fb8f2b2da349 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
<?xml version="1.0" encoding="UTF-8"?>
<problems>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>11</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;i + 0&lt;/code&gt; can be replaced with 'i' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>13</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;0+j&lt;/code&gt; can be replaced with 'j' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>15</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;j - 0&lt;/code&gt; can be replaced with 'j' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>23</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;j / 1&lt;/code&gt; can be replaced with 'j' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>27</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;j%1&lt;/code&gt; can be replaced with '0' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>93</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;i / i&lt;/code&gt; can be replaced with '1' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>94</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;i - i&lt;/code&gt; can be replaced with '0' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>95</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;i % i&lt;/code&gt; can be replaced with '0' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>111</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;(CONST + (new Main(5).i) * 8) - (Main.CONST + new Main(5).i * (8))&lt;/code&gt; can be replaced with '0' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>114</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;5/5&lt;/code&gt; can be replaced with '1' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>117</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;1/**/ - (byte)0 - 9&lt;/code&gt; can be replaced with '1/**/ -  9' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>118</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;8 * 0 * 8&lt;/code&gt; can be replaced with '0' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>119</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;1 + /*a*/0 +/**/ 9&lt;/code&gt; can be replaced with '1 + /*a*//**/ 9' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>120</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;1L - 1L&lt;/code&gt; can be replaced with '0L' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>122</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;2 / 1 / 1&lt;/code&gt; can be replaced with '2 /  1' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>123</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;u * 1&lt;/code&gt; can be replaced with 'u' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>124</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;8L / 8L&lt;/code&gt; can be replaced with '1L' #loc</description>
  </problem>

  <problem>
    <file>PointlessArithmeticExpression.java</file>
    <line>125</line>
    <problem_class severity="WARNING" attribute_key="WARNING_ATTRIBUTES">Pointless arithmetic expression</problem_class>
    <description>&lt;code&gt;9L * 0L&lt;/code&gt; can be replaced with '0L' #loc</description>
  </problem>
</problems>