fixed compilation errors on JDk 1.5

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1372061 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yegor Kozlov 2012-08-12 09:38:17 +00:00
parent e2385e48b6
commit 8d467f5751
1 changed files with 20 additions and 19 deletions

View File

@ -1,19 +1,21 @@
/* ==================================================================== /*
Licensed to the Apache Software Foundation (ASF) under one or more * ====================================================================
contributor license agreements. See the NOTICE file distributed with * Licensed to the Apache Software Foundation (ASF) under one or more
this work for additional information regarding copyright ownership. * contributor license agreements. See the NOTICE file distributed with
The ASF licenses this file to You under the Apache License, Version 2.0 * this work for additional information regarding copyright ownership.
(the "License"); you may not use this file except in compliance with * The ASF licenses this file to You under the Apache License, Version 2.0
the License. You may obtain a copy of the License at * (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0 *
* http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software *
distributed under the License is distributed on an "AS IS" BASIS, * Unless required by applicable law or agreed to in writing, software
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
limitations under the License. * See the License for the specific language governing permissions and
==================================================================== */ * limitations under the License.
* ====================================================================
*/
package org.apache.poi.ss.formula.functions; package org.apache.poi.ss.formula.functions;
@ -58,12 +60,12 @@ public final class WeekdayFunc implements Function {
* Perform WEEKDAY(date, returnOption) function. * Perform WEEKDAY(date, returnOption) function.
* Note: Parameter texts are from German EXCEL-2010 help. * Note: Parameter texts are from German EXCEL-2010 help.
* Parameters in args[]: * Parameters in args[]:
* @param serialDate * args[0] serialDate
* EXCEL-date value * EXCEL-date value
* Standardmaessig ist der 1. Januar 1900 die fortlaufende Zahl 1 und * Standardmaessig ist der 1. Januar 1900 die fortlaufende Zahl 1 und
* der 1. Januar 2008 die fortlaufende Zahl 39.448, da dieser Tag nach 39.448 Tagen * der 1. Januar 2008 die fortlaufende Zahl 39.448, da dieser Tag nach 39.448 Tagen
* auf den 01.01.1900 folgt. * auf den 01.01.1900 folgt.
* @param returnOption (optional) * @return Option (optional)
* Bestimmt den Rueckgabewert: * Bestimmt den Rueckgabewert:
1 oder nicht angegeben Zahl 1 (Sonntag) bis 7 (Samstag). Verhaelt sich wie fruehere Microsoft Excel-Versionen. 1 oder nicht angegeben Zahl 1 (Sonntag) bis 7 (Samstag). Verhaelt sich wie fruehere Microsoft Excel-Versionen.
2 Zahl 1 (Montag) bis 7 (Sonntag). 2 Zahl 1 (Montag) bis 7 (Sonntag).
@ -76,7 +78,6 @@ public final class WeekdayFunc implements Function {
16 Die Zahlen 1 (Samstag) bis 7 (Freitag) 16 Die Zahlen 1 (Samstag) bis 7 (Freitag)
17 Die Zahlen 1 (Sonntag) bis 7 (Samstag) 17 Die Zahlen 1 (Sonntag) bis 7 (Samstag)
*/ */
@Override
public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) { public ValueEval evaluate(ValueEval[] args, int srcRowIndex, int srcColumnIndex) {
try { try {
if (args.length < 1 || args.length > 2) { if (args.length < 1 || args.length > 2) {