diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/ServerDeploy.java b/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/ServerDeploy.java index 5e7d03f75..5d99a21c3 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/ServerDeploy.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/j2ee/ServerDeploy.java @@ -87,7 +87,7 @@ public class ServerDeploy extends Task /////////////////////////////////////////////////////////////////////////// // - // Place vendor specific tool creations here. + // Place vendor specific tool creations here. // /////////////////////////////////////////////////////////////////////////// @@ -127,7 +127,7 @@ public class ServerDeploy extends Task /////////////////////////////////////////////////////////////////////////// // - // Execute method + // Execute method // /////////////////////////////////////////////////////////////////////////// @@ -150,7 +150,7 @@ public class ServerDeploy extends Task /////////////////////////////////////////////////////////////////////////// // - // Set/get methods + // Set/get methods // /////////////////////////////////////////////////////////////////////////// diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java index 53d82fc34..7fe14ccab 100644 --- a/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java +++ b/src/main/org/apache/tools/ant/taskdefs/optional/junit/BaseTest.java @@ -1,7 +1,7 @@ /* * The Apache Software License, Version 1.1 * - * Copyright (c) 2000-2001 The Apache Software Foundation. All rights + * Copyright (c) 2000-2002 The Apache Software Foundation. All rights * reserved. * * Redistribution and use in source and binary forms, with or without @@ -130,7 +130,7 @@ public abstract class BaseTest { /** * @return the destination directory as an absolute path if it exists - * otherwise return null + * otherwise return null */ public String getTodir(){ if (destDir != null){ diff --git a/src/main/org/apache/tools/ant/util/DateUtils.java b/src/main/org/apache/tools/ant/util/DateUtils.java index b5ec73236..507324af9 100644 --- a/src/main/org/apache/tools/ant/util/DateUtils.java +++ b/src/main/org/apache/tools/ant/util/DateUtils.java @@ -190,13 +190,13 @@ public final class DateUtils { * moon period = 29.53058 days ~= 30, year = 365.2422 days * * days moon phase advances on first day of year compared to preceding year - * = 365.2422 - 12*29.53058 ~= 11 + * = 365.2422 - 12*29.53058 ~= 11 * * years in Metonic cycle (time until same phases fall on the same days of - * the month) = 18.6 ~= 19 + * the month) = 18.6 ~= 19 * * moon phase on first day of year (epact) ~= (11*(year%19) + 18) % 30 - * (18 as initial condition for 1900) + * (18 as initial condition for 1900) * * current phase in days = first day phase + days elapsed in year * @@ -213,10 +213,10 @@ public final class DateUtils { public static int getPhaseOfMoon(Calendar cal) { int dayOfTheYear = cal.get(Calendar.DAY_OF_YEAR); int yearInMetonicCycle = ((cal.get(Calendar.YEAR) - 1900) % 19) + 1; - int epact = (11 * yearInMetonicCycle + 18) % 30; - if ((epact == 25 && yearInMetonicCycle > 11) || epact == 24) { + int epact = (11 * yearInMetonicCycle + 18) % 30; + if ((epact == 25 && yearInMetonicCycle > 11) || epact == 24) { epact++; } - return (((((dayOfTheYear + epact) * 6) + 11) % 177) / 22) & 7; + return (((((dayOfTheYear + epact) * 6) + 11) % 177) / 22) & 7; } }