Skip to content

Commit 01c2fac

Browse files
committed
[ignore] Fix an issue with function parameter naming
1 parent 4a976e0 commit 01c2fac

File tree

2 files changed

+64
-48
lines changed

2 files changed

+64
-48
lines changed

exist-core/pom.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,6 +1054,7 @@
10541054
<include>src/main/java/org/exist/xquery/value/AbstractDateTimeValue.java</include>
10551055
<include>src/test/java/org/exist/xquery/value/Base64BinaryValueTypeTest.java</include>
10561056
<include>src/main/java/org/exist/xquery/value/SequenceType.java</include>
1057+
<include>src/main/java/org/exist/xquery/value/TimeUtils.java</include>
10571058
<include>src/main/java/org/exist/xquery/value/Type.java</include>
10581059
<include>src/main/java/org/exist/xslt/EXistURIResolver.java</include>
10591060
<include>src/main/java/org/exist/xslt/XsltURIResolverHelper.java</include>
@@ -1480,6 +1481,7 @@
14801481
<exclude>src/main/java/org/exist/xquery/value/SubSequence.java</exclude>
14811482
<exclude>src/test/java/org/exist/xquery/value/SubSequenceRangeTest.java</exclude>
14821483
<exclude>src/test/java/org/exist/xquery/value/SubSequenceTest.java</exclude>
1484+
<exclude>src/main/java/org/exist/xquery/value/TimeUtils.java</exclude>
14831485
<exclude>src/main/java/org/exist/xquery/value/Type.java</exclude>
14841486
<exclude>src/main/java/org/exist/xslt/EXistURIResolver.java</exclude>
14851487
<exclude>src/main/java/org/exist/xslt/XsltURIResolverHelper.java</exclude>

exist-core/src/main/java/org/exist/xquery/value/TimeUtils.java

Lines changed: 62 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,28 @@
11
/*
2+
* Elemental
3+
* Copyright (C) 2024, Evolved Binary Ltd
4+
*
5+
6+
* https://www.evolvedbinary.com | https://www.elemental.xyz
7+
*
8+
* This library is free software; you can redistribute it and/or
9+
* modify it under the terms of the GNU Lesser General Public
10+
* License as published by the Free Software Foundation; version 2.1.
11+
*
12+
* This library is distributed in the hope that it will be useful,
13+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
14+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15+
* Lesser General Public License for more details.
16+
*
17+
* You should have received a copy of the GNU Lesser General Public
18+
* License along with this library; if not, write to the Free Software
19+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20+
*
21+
* NOTE: Parts of this file contain code from 'The eXist-db Authors'.
22+
* The original license header is included below.
23+
*
24+
* =====================================================================
25+
*
226
* eXist-db Open Source Native XML Database
327
* Copyright (C) 2001 The eXist-db Authors
428
*
@@ -98,97 +122,87 @@ public int getLocalTimezoneOffsetMinutes() {
98122
return getLocalTimezoneOffsetMillis() / 60000;
99123
}
100124

101-
public Duration newDuration(long arg0) {
102-
return factory.newDuration(arg0);
125+
public Duration newDuration(final long durationInMilliSeconds) {
126+
return factory.newDuration(durationInMilliSeconds);
103127
}
104128

105-
public Duration newDuration(String arg0) {
106-
return factory.newDuration(arg0);
129+
public Duration newDuration(final String lexicalRepresentation) {
130+
return factory.newDuration(lexicalRepresentation);
107131
}
108132

109-
public Duration newDuration(
110-
final boolean isPositive,
111-
final int years,
112-
final int months,
113-
final int days,
114-
final int hours,
115-
final int minutes,
116-
final int seconds) {
117-
133+
public Duration newDuration(final boolean isPositive, final int years, final int months, final int days, final int hours, final int minutes, final int seconds) {
118134
return factory.newDuration(isPositive, years, months, days, hours, minutes, seconds);
119135
}
120136

121-
public Duration newDuration(boolean arg0, BigInteger arg1, BigInteger arg2, BigInteger arg3, BigInteger arg4, BigInteger arg5, BigDecimal arg6) {
122-
return factory.newDuration(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
137+
public Duration newDuration(final boolean isPositive, final BigInteger years, final BigInteger months, final BigInteger days, final BigInteger hours, final BigInteger minutes, final BigDecimal seconds) {
138+
return factory.newDuration(isPositive, years, months, days, hours, minutes, seconds);
123139
}
124140

125-
public Duration newDurationDayTime(long arg0) {
126-
return factory.newDurationDayTime(arg0);
141+
public Duration newDurationDayTime(final long durationInMilliseconds) {
142+
return factory.newDurationDayTime(durationInMilliseconds);
127143
}
128144

129-
public Duration newDurationDayTime(String arg0) {
130-
return factory.newDurationDayTime(arg0);
145+
public Duration newDurationDayTime(final String lexicalRepresentation) {
146+
return factory.newDurationDayTime(lexicalRepresentation);
131147
}
132148

133-
public Duration newDurationDayTime(boolean arg0, int arg1, int arg2, int arg3, int arg4) {
134-
return factory.newDurationDayTime(arg0, arg1, arg2, arg3, arg4);
149+
public Duration newDurationDayTime(final boolean isPositive, final int day, final int hour, final int minute, final int second) {
150+
return factory.newDurationDayTime(isPositive, day, hour, minute, second);
135151
}
136152

137-
public Duration newDurationDayTime(boolean arg0, BigInteger arg1, BigInteger arg2, BigInteger arg3, BigInteger arg4) {
138-
return factory.newDurationDayTime(arg0, arg1, arg2, arg3, arg4);
153+
public Duration newDurationDayTime(final boolean isPositive, final BigInteger day, final BigInteger hour, final BigInteger minute, final BigInteger second) {
154+
return factory.newDurationDayTime(isPositive, day, hour, minute, second);
139155
}
140156

141-
public Duration newDurationYearMonth(long arg0) {
142-
return factory.newDurationYearMonth(arg0);
157+
public Duration newDurationYearMonth(final long durationInMilliseconds) {
158+
return factory.newDurationYearMonth(durationInMilliseconds);
143159
}
144160

145-
public Duration newDurationYearMonth(String arg0) {
146-
return factory.newDurationYearMonth(arg0);
161+
public Duration newDurationYearMonth(final String lexicalRepresentation) {
162+
return factory.newDurationYearMonth(lexicalRepresentation);
147163
}
148164

149-
public Duration newDurationYearMonth(boolean arg0, int arg1, int arg2) {
150-
return factory.newDurationYearMonth(arg0, arg1, arg2);
165+
public Duration newDurationYearMonth(final boolean isPositive, final int year, final int month) {
166+
return factory.newDurationYearMonth(isPositive, year, month);
151167
}
152168

153-
public Duration newDurationYearMonth(boolean arg0, BigInteger arg1, BigInteger arg2) {
154-
return factory.newDurationYearMonth(arg0, arg1, arg2);
169+
public Duration newDurationYearMonth(final boolean isPositive, final BigInteger year, final BigInteger month) {
170+
return factory.newDurationYearMonth(isPositive, year, month);
155171
}
156172

157173
public XMLGregorianCalendar newXMLGregorianCalendar() {
158174
return factory.newXMLGregorianCalendar();
159175
}
160176

161-
public XMLGregorianCalendar newXMLGregorianCalendar(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7) {
162-
return factory.newXMLGregorianCalendar(arg0, arg1, arg2, arg3, arg4, arg5,
163-
arg6, arg7);
177+
public XMLGregorianCalendar newXMLGregorianCalendar(final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond, final int timezone) {
178+
return factory.newXMLGregorianCalendar(year, month, day, hour, minute, second, millisecond, timezone);
164179
}
165180

166-
public XMLGregorianCalendar newXMLGregorianCalendar(String lexicalRepresentation) {
181+
public XMLGregorianCalendar newXMLGregorianCalendar(final String lexicalRepresentation) {
167182
return factory.newXMLGregorianCalendar(lexicalRepresentation);
168183
}
169184

170-
public XMLGregorianCalendar newXMLGregorianCalendar(BigInteger arg0, int arg1, int arg2, int arg3, int arg4, int arg5, BigDecimal arg6, int arg7) {
171-
return factory.newXMLGregorianCalendar(arg0, arg1, arg2, arg3, arg4, arg5,
172-
arg6, arg7);
185+
public XMLGregorianCalendar newXMLGregorianCalendar(final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) {
186+
return factory.newXMLGregorianCalendar(year, month, day, hour, minute, second, fractionalSecond, timezone);
173187
}
174188

175-
public XMLGregorianCalendar newXMLGregorianCalendar(GregorianCalendar arg0) {
176-
return factory.newXMLGregorianCalendar(arg0);
189+
public XMLGregorianCalendar newXMLGregorianCalendar(final GregorianCalendar cal) {
190+
return factory.newXMLGregorianCalendar(cal);
177191
}
178192

179-
public XMLGregorianCalendar newXMLGregorianCalendarDate(int arg0, int arg1, int arg2, int arg3) {
180-
return factory.newXMLGregorianCalendarDate(arg0, arg1, arg2, arg3);
193+
public XMLGregorianCalendar newXMLGregorianCalendarDate(final int year, final int month, final int day, final int timezone) {
194+
return factory.newXMLGregorianCalendarDate(year, month, day, timezone);
181195
}
182196

183-
public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, int arg3) {
184-
return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3);
197+
public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final int timezone) {
198+
return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, timezone);
185199
}
186200

187-
public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, int arg3, int arg4) {
188-
return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3, arg4);
201+
public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final int milliseconds, final int timezone) {
202+
return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, milliseconds, timezone);
189203
}
190204

191-
public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, BigDecimal arg3, int arg4) {
192-
return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3, arg4);
205+
public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final BigDecimal fractionalSecond, final int timezone) {
206+
return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, fractionalSecond, timezone);
193207
}
194208
}

0 commit comments

Comments
 (0)