Skip to content

Commit e0dd162

Browse files
authored
ZmanimFormatter - Change Deprecation pending minimum Java 9 change
- Change Deprecation pending minimum Java 9 change - Remove unused private method formatDigits
1 parent eb7e5ca commit e0dd162

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

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

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ public String formatDateTime(Date dateTime, Calendar calendar) {
302302
* @return the XSD dateTime
303303
* @deprecated This method will be removed in v3.0
304304
*/
305-
@Deprecated (since="2.5", forRemoval=true)
305+
@Deprecated // (since="2.5", forRemoval=true)// add back once Java 9 is the minimum supported version
306306
public String getXSDateTime(Date date, Calendar calendar) {
307307
return getXSDateTime(date);
308308
}
@@ -318,18 +318,6 @@ public String getXSDateTime(Date date) {
318318
return new StringBuilder(dateFormat.format(date)).toString();
319319
}
320320

321-
/**
322-
* Represent the hours and minutes with two-digit strings.
323-
*
324-
* @param digits
325-
* hours or minutes.
326-
* @return two-digit String representation of hrs or minutes.
327-
*/
328-
private static String formatDigits(int digits) {
329-
String dd = String.valueOf(Math.abs(digits));
330-
return dd.length() == 1 ? '0' + dd : dd;
331-
}
332-
333321
/**
334322
* This returns the xml representation of an xsd:duration object.
335323
*

0 commit comments

Comments
 (0)