Skip to content

Commit 4cedff9

Browse files
committed
[ignore] Fix an issue with function parameter naming
1 parent 7a12268 commit 4cedff9

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
@@ -999,6 +999,7 @@
999999
<include>src/main/java/org/exist/xquery/value/AbstractDateTimeValue.java</include>
10001000
<include>src/test/java/org/exist/xquery/value/Base64BinaryValueTypeTest.java</include>
10011001
<include>src/main/java/org/exist/xquery/value/SequenceType.java</include>
1002+
<include>src/main/java/org/exist/xquery/value/TimeUtils.java</include>
10021003
<include>src/main/java/org/exist/xquery/value/Type.java</include>
10031004
<include>src/main/java/org/exist/xslt/EXistURIResolver.java</include>
10041005
<include>src/main/java/org/exist/xslt/XsltURIResolverHelper.java</include>
@@ -1412,6 +1413,7 @@
14121413
<exclude>src/main/java/org/exist/xquery/value/SubSequence.java</exclude>
14131414
<exclude>src/test/java/org/exist/xquery/value/SubSequenceRangeTest.java</exclude>
14141415
<exclude>src/test/java/org/exist/xquery/value/SubSequenceTest.java</exclude>
1416+
<exclude>src/main/java/org/exist/xquery/value/TimeUtils.java</exclude>
14151417
<exclude>src/main/java/org/exist/xquery/value/Type.java</exclude>
14161418
<exclude>src/main/java/org/exist/xslt/EXistURIResolver.java</exclude>
14171419
<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
*
@@ -100,97 +124,87 @@ public int getLocalTimezoneOffsetMinutes() {
100124
return getLocalTimezoneOffsetMillis() / 60000;
101125
}
102126

103-
public Duration newDuration(long arg0) {
104-
return factory.newDuration(arg0);
127+
public Duration newDuration(final long durationInMilliSeconds) {
128+
return factory.newDuration(durationInMilliSeconds);
105129
}
106130

107-
public Duration newDuration(String arg0) {
108-
return factory.newDuration(arg0);
131+
public Duration newDuration(final String lexicalRepresentation) {
132+
return factory.newDuration(lexicalRepresentation);
109133
}
110134

111-
public Duration newDuration(
112-
final boolean isPositive,
113-
final int years,
114-
final int months,
115-
final int days,
116-
final int hours,
117-
final int minutes,
118-
final int seconds) {
119-
135+
public Duration newDuration(final boolean isPositive, final int years, final int months, final int days, final int hours, final int minutes, final int seconds) {
120136
return factory.newDuration(isPositive, years, months, days, hours, minutes, seconds);
121137
}
122138

123-
public Duration newDuration(boolean arg0, BigInteger arg1, BigInteger arg2, BigInteger arg3, BigInteger arg4, BigInteger arg5, BigDecimal arg6) {
124-
return factory.newDuration(arg0, arg1, arg2, arg3, arg4, arg5, arg6);
139+
public Duration newDuration(final boolean isPositive, final BigInteger years, final BigInteger months, final BigInteger days, final BigInteger hours, final BigInteger minutes, final BigDecimal seconds) {
140+
return factory.newDuration(isPositive, years, months, days, hours, minutes, seconds);
125141
}
126142

127-
public Duration newDurationDayTime(long arg0) {
128-
return factory.newDurationDayTime(arg0);
143+
public Duration newDurationDayTime(final long durationInMilliseconds) {
144+
return factory.newDurationDayTime(durationInMilliseconds);
129145
}
130146

131-
public Duration newDurationDayTime(String arg0) {
132-
return factory.newDurationDayTime(arg0);
147+
public Duration newDurationDayTime(final String lexicalRepresentation) {
148+
return factory.newDurationDayTime(lexicalRepresentation);
133149
}
134150

135-
public Duration newDurationDayTime(boolean arg0, int arg1, int arg2, int arg3, int arg4) {
136-
return factory.newDurationDayTime(arg0, arg1, arg2, arg3, arg4);
151+
public Duration newDurationDayTime(final boolean isPositive, final int day, final int hour, final int minute, final int second) {
152+
return factory.newDurationDayTime(isPositive, day, hour, minute, second);
137153
}
138154

139-
public Duration newDurationDayTime(boolean arg0, BigInteger arg1, BigInteger arg2, BigInteger arg3, BigInteger arg4) {
140-
return factory.newDurationDayTime(arg0, arg1, arg2, arg3, arg4);
155+
public Duration newDurationDayTime(final boolean isPositive, final BigInteger day, final BigInteger hour, final BigInteger minute, final BigInteger second) {
156+
return factory.newDurationDayTime(isPositive, day, hour, minute, second);
141157
}
142158

143-
public Duration newDurationYearMonth(long arg0) {
144-
return factory.newDurationYearMonth(arg0);
159+
public Duration newDurationYearMonth(final long durationInMilliseconds) {
160+
return factory.newDurationYearMonth(durationInMilliseconds);
145161
}
146162

147-
public Duration newDurationYearMonth(String arg0) {
148-
return factory.newDurationYearMonth(arg0);
163+
public Duration newDurationYearMonth(final String lexicalRepresentation) {
164+
return factory.newDurationYearMonth(lexicalRepresentation);
149165
}
150166

151-
public Duration newDurationYearMonth(boolean arg0, int arg1, int arg2) {
152-
return factory.newDurationYearMonth(arg0, arg1, arg2);
167+
public Duration newDurationYearMonth(final boolean isPositive, final int year, final int month) {
168+
return factory.newDurationYearMonth(isPositive, year, month);
153169
}
154170

155-
public Duration newDurationYearMonth(boolean arg0, BigInteger arg1, BigInteger arg2) {
156-
return factory.newDurationYearMonth(arg0, arg1, arg2);
171+
public Duration newDurationYearMonth(final boolean isPositive, final BigInteger year, final BigInteger month) {
172+
return factory.newDurationYearMonth(isPositive, year, month);
157173
}
158174

159175
public XMLGregorianCalendar newXMLGregorianCalendar() {
160176
return factory.newXMLGregorianCalendar();
161177
}
162178

163-
public XMLGregorianCalendar newXMLGregorianCalendar(int arg0, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6, int arg7) {
164-
return factory.newXMLGregorianCalendar(arg0, arg1, arg2, arg3, arg4, arg5,
165-
arg6, arg7);
179+
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) {
180+
return factory.newXMLGregorianCalendar(year, month, day, hour, minute, second, millisecond, timezone);
166181
}
167182

168-
public XMLGregorianCalendar newXMLGregorianCalendar(String lexicalRepresentation) {
183+
public XMLGregorianCalendar newXMLGregorianCalendar(final String lexicalRepresentation) {
169184
return factory.newXMLGregorianCalendar(lexicalRepresentation);
170185
}
171186

172-
public XMLGregorianCalendar newXMLGregorianCalendar(BigInteger arg0, int arg1, int arg2, int arg3, int arg4, int arg5, BigDecimal arg6, int arg7) {
173-
return factory.newXMLGregorianCalendar(arg0, arg1, arg2, arg3, arg4, arg5,
174-
arg6, arg7);
187+
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) {
188+
return factory.newXMLGregorianCalendar(year, month, day, hour, minute, second, fractionalSecond, timezone);
175189
}
176190

177-
public XMLGregorianCalendar newXMLGregorianCalendar(GregorianCalendar arg0) {
178-
return factory.newXMLGregorianCalendar(arg0);
191+
public XMLGregorianCalendar newXMLGregorianCalendar(final GregorianCalendar cal) {
192+
return factory.newXMLGregorianCalendar(cal);
179193
}
180194

181-
public XMLGregorianCalendar newXMLGregorianCalendarDate(int arg0, int arg1, int arg2, int arg3) {
182-
return factory.newXMLGregorianCalendarDate(arg0, arg1, arg2, arg3);
195+
public XMLGregorianCalendar newXMLGregorianCalendarDate(final int year, final int month, final int day, final int timezone) {
196+
return factory.newXMLGregorianCalendarDate(year, month, day, timezone);
183197
}
184198

185-
public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, int arg3) {
186-
return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3);
199+
public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final int timezone) {
200+
return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, timezone);
187201
}
188202

189-
public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, int arg3, int arg4) {
190-
return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3, arg4);
203+
public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final int milliseconds, final int timezone) {
204+
return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, milliseconds, timezone);
191205
}
192206

193-
public XMLGregorianCalendar newXMLGregorianCalendarTime(int arg0, int arg1, int arg2, BigDecimal arg3, int arg4) {
194-
return factory.newXMLGregorianCalendarTime(arg0, arg1, arg2, arg3, arg4);
207+
public XMLGregorianCalendar newXMLGregorianCalendarTime(final int hours, final int minutes, final int seconds, final BigDecimal fractionalSecond, final int timezone) {
208+
return factory.newXMLGregorianCalendarTime(hours, minutes, seconds, fractionalSecond, timezone);
195209
}
196210
}

0 commit comments

Comments
 (0)