Skip to content

Commit 85f2989

Browse files
authored
Update JavaDocs to avoid warnings on recent JDKs
1 parent d064715 commit 85f2989

File tree

1 file changed

+18
-5
lines changed
  • src/main/java/com/kosherjava/zmanim/util

1 file changed

+18
-5
lines changed

src/main/java/com/kosherjava/zmanim/util/Time.java

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Zmanim Java API
3-
* Copyright (C) 2004-2020 Eliyahu Hershfeld
3+
* Copyright (C) 2004-2025 Eliyahu Hershfeld
44
*
55
* This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General
66
* Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option)
@@ -22,7 +22,7 @@
2222
* this API. The time class is used to represent numeric time such as the time in hours, minutes, seconds and
2323
* milliseconds of a {@link com.kosherjava.zmanim.AstronomicalCalendar#getTemporalHour() temporal hour}.
2424
*
25-
* @author © Eliyahu Hershfeld 2004 - 2020
25+
* @author © Eliyahu Hershfeld 2004 - 2025
2626
*/
2727
public class Time {
2828
/** milliseconds in a second. */
@@ -35,26 +35,31 @@ public class Time {
3535
private static final int HOUR_MILLIS = MINUTE_MILLIS * 60;
3636

3737
/**
38+
* The hour.
3839
* @see #getHours()
3940
*/
4041
private int hours;
4142

4243
/**
44+
* The minutes.
4345
* @see #getMinutes()
4446
*/
4547
private int minutes;
4648

4749
/**
50+
* The seconds.
4851
* @see #getSeconds()
4952
*/
5053
private int seconds;
5154

5255
/**
56+
* The milliseconds.
5357
* @see #getMilliseconds()
5458
*/
5559
private int milliseconds;
5660

5761
/**
62+
* Is the time negative
5863
* @see #isNegative()
5964
* @see #setIsNegative(boolean)
6065
*/
@@ -85,8 +90,8 @@ public Time(double millis) {
8590
}
8691

8792
/**
88-
* A constructor that sets the time by milliseconds. The milliseconds are converted to hours, minutes, seconds
89-
* and milliseconds. If the milliseconds are negative it will call {@link #setIsNegative(boolean)}.
93+
* A constructor that sets the time from milliseconds. The milliseconds are converted to hours, minutes,
94+
* seconds and milliseconds. If the milliseconds are negative it will call {@link#setIsNegative(boolean)}.
9095
* @param millis the milliseconds to set.
9196
*/
9297
public Time(int millis) {
@@ -108,7 +113,7 @@ public Time(int millis) {
108113
}
109114

110115
/**
111-
* Does the time represent a negative time 9such as using this to subtract time from another Time.
116+
* Does the time represent a negative time, such as using this to subtract time from another Time.
112117
* @return if the time is negative.
113118
*/
114119
public boolean isNegative() {
@@ -124,13 +129,15 @@ public void setIsNegative(boolean isNegative) {
124129
}
125130

126131
/**
132+
* Get the hour.
127133
* @return Returns the hour.
128134
*/
129135
public int getHours() {
130136
return this.hours;
131137
}
132138

133139
/**
140+
* Set the hour.
134141
* @param hours
135142
* The hours to set.
136143
*/
@@ -139,13 +146,15 @@ public void setHours(int hours) {
139146
}
140147

141148
/**
149+
* Get the minutes.
142150
* @return Returns the minutes.
143151
*/
144152
public int getMinutes() {
145153
return this.minutes;
146154
}
147155

148156
/**
157+
* Set the minutes.
149158
* @param minutes
150159
* The minutes to set.
151160
*/
@@ -154,13 +163,15 @@ public void setMinutes(int minutes) {
154163
}
155164

156165
/**
166+
* Get the seconds.
157167
* @return Returns the seconds.
158168
*/
159169
public int getSeconds() {
160170
return this.seconds;
161171
}
162172

163173
/**
174+
* Set the seconds.
164175
* @param seconds
165176
* The seconds to set.
166177
*/
@@ -169,13 +180,15 @@ public void setSeconds(int seconds) {
169180
}
170181

171182
/**
183+
* Get the milliseconds.
172184
* @return Returns the milliseconds.
173185
*/
174186
public int getMilliseconds() {
175187
return this.milliseconds;
176188
}
177189

178190
/**
191+
* Set the milliseconds.
179192
* @param milliseconds
180193
* The milliseconds to set.
181194
*/

0 commit comments

Comments
 (0)