Skip to content

Commit 5179164

Browse files
committed
more sonar identified stuff cleaned
1 parent a6f00a4 commit 5179164

File tree

4 files changed

+12
-46
lines changed

4 files changed

+12
-46
lines changed

src/main/java/net/sf/jsqlparser/expression/DoubleValue.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ public class DoubleValue implements Expression {
2929
private double value;
3030
private String stringValue;
3131

32-
public DoubleValue(String value) {
33-
if (value.charAt(0) == '+') {
34-
value = value.substring(1);
32+
public DoubleValue(final String value) {
33+
String val = value;
34+
if (val.charAt(0) == '+') {
35+
val = val.substring(1);
3536
}
36-
this.value = Double.parseDouble(value);
37-
this.stringValue = value;
37+
this.value = Double.parseDouble(val);
38+
this.stringValue = val;
3839
}
3940

4041
@Override

src/main/java/net/sf/jsqlparser/expression/LongValue.java

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,13 @@ public class LongValue implements Expression {
2929
private long value;
3030
private String stringValue;
3131

32-
public LongValue(String value) {
33-
if (value.charAt(0) == '+') {
34-
value = value.substring(1);
32+
public LongValue(final String value) {
33+
String val = value;
34+
if (val.charAt(0) == '+') {
35+
val = val.substring(1);
3536
}
36-
this.value = Long.parseLong(value);
37-
this.stringValue = value;
37+
this.value = Long.parseLong(val);
38+
this.stringValue = val;
3839
}
3940

4041
@Override

src/main/java/net/sf/jsqlparser/expression/operators/relational/MultiExpressionList.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,6 @@
1919
* <http://www.gnu.org/licenses/lgpl-2.1.html>.
2020
* #L%
2121
*/
22-
/*
23-
* Copyright (C) 2013 toben.
24-
*
25-
* This library is free software; you can redistribute it and/or
26-
* modify it under the terms of the GNU Lesser General Public
27-
* License as published by the Free Software Foundation; either
28-
* version 2.1 of the License, or (at your option) any later version.
29-
*
30-
* This library is distributed in the hope that it will be useful,
31-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
32-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33-
* Lesser General Public License for more details.
34-
*
35-
* You should have received a copy of the GNU Lesser General Public
36-
* License along with this library; if not, write to the Free Software
37-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
38-
* MA 02110-1301 USA
39-
*/
4022
package net.sf.jsqlparser.expression.operators.relational;
4123

4224
import java.util.ArrayList;

src/main/java/net/sf/jsqlparser/statement/select/ValuesList.java

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,24 +19,6 @@
1919
* <http://www.gnu.org/licenses/lgpl-2.1.html>.
2020
* #L%
2121
*/
22-
/*
23-
* Copyright (C) 2013 toben.
24-
*
25-
* This library is free software; you can redistribute it and/or
26-
* modify it under the terms of the GNU Lesser General Public
27-
* License as published by the Free Software Foundation; either
28-
* version 2.1 of the License, or (at your option) any later version.
29-
*
30-
* This library is distributed in the hope that it will be useful,
31-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
32-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33-
* Lesser General Public License for more details.
34-
*
35-
* You should have received a copy of the GNU Lesser General Public
36-
* License along with this library; if not, write to the Free Software
37-
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
38-
* MA 02110-1301 USA
39-
*/
4022
package net.sf.jsqlparser.statement.select;
4123

4224
import java.util.Iterator;

0 commit comments

Comments
 (0)