Skip to content

Commit 8775873

Browse files
authored
Update package name references to com.kosherjava
Prevent some odd runtime behavior in the use of reflection to determine the class.
1 parent 31a38e9 commit 8775873

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

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

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ public String formatXSDDurationTime(Time time) {
349349
* format used is:
350350
*
351351
* <pre>
352-
* &lt;AstronomicalTimes date=&quot;1969-02-08&quot; type=&quot;net.sourceforge.zmanim.AstronomicalCalendar algorithm=&quot;US Naval Almanac Algorithm&quot; location=&quot;Lakewood, NJ&quot; latitude=&quot;40.095965&quot; longitude=&quot;-74.22213&quot; elevation=&quot;31.0&quot; timeZoneName=&quot;Eastern Standard Time&quot; timeZoneID=&quot;America/New_York&quot; timeZoneOffset=&quot;-5&quot;&gt;
352+
* &lt;AstronomicalTimes date=&quot;1969-02-08&quot; type=&quot;com.kosherjava.zmanim.AstronomicalCalendar algorithm=&quot;US Naval Almanac Algorithm&quot; location=&quot;Lakewood, NJ&quot; latitude=&quot;40.095965&quot; longitude=&quot;-74.22213&quot; elevation=&quot;31.0&quot; timeZoneName=&quot;Eastern Standard Time&quot; timeZoneID=&quot;America/New_York&quot; timeZoneOffset=&quot;-5&quot;&gt;
353353
* &lt;Sunrise&gt;2007-02-18T06:45:27-05:00&lt;/Sunrise&gt;
354354
* &lt;TemporalHour&gt;PT54M17.529S&lt;/TemporalHour&gt;
355355
* ...
@@ -367,7 +367,7 @@ public String formatXSDDurationTime(Time time) {
367367
* @return The XML formatted <code>String</code>. The format will be:
368368
*
369369
* <pre>
370-
* &lt;AstronomicalTimes date=&quot;1969-02-08&quot; type=&quot;net.sourceforge.zmanim.AstronomicalCalendar algorithm=&quot;US Naval Almanac Algorithm&quot; location=&quot;Lakewood, NJ&quot; latitude=&quot;40.095965&quot; longitude=&quot;-74.22213&quot; elevation=&quot;31.0&quot; timeZoneName=&quot;Eastern Standard Time&quot; timeZoneID=&quot;America/New_York&quot; timeZoneOffset=&quot;-5&quot;&gt;
370+
* &lt;AstronomicalTimes date=&quot;1969-02-08&quot; type=&quot;com.kosherjava.zmanim.AstronomicalCalendar algorithm=&quot;US Naval Almanac Algorithm&quot; location=&quot;Lakewood, NJ&quot; latitude=&quot;40.095965&quot; longitude=&quot;-74.22213&quot; elevation=&quot;31.0&quot; timeZoneName=&quot;Eastern Standard Time&quot; timeZoneID=&quot;America/New_York&quot; timeZoneOffset=&quot;-5&quot;&gt;
371371
* &lt;Sunrise&gt;2007-02-18T06:45:27-05:00&lt;/Sunrise&gt;
372372
* &lt;TemporalHour&gt;PT54M17.529S&lt;/TemporalHour&gt;
373373
* ...
@@ -387,17 +387,17 @@ public static String toXML(AstronomicalCalendar astronomicalCalendar) {
387387
boolean daylight = tz.useDaylightTime() && tz.inDaylightTime(date);
388388

389389
StringBuffer sb = new StringBuffer("<");
390-
if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.AstronomicalCalendar")) {
390+
if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.AstronomicalCalendar")) {
391391
sb.append("AstronomicalTimes");
392392
// TODO: use proper schema ref, and maybe build a real schema.
393393
// output += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ";
394394
// output += xsi:schemaLocation="http://www.kosherjava.com/zmanim astronomical.xsd"
395-
} else if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.ComplexZmanimCalendar")) {
395+
} else if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.ComplexZmanimCalendar")) {
396396
sb.append("Zmanim");
397397
// TODO: use proper schema ref, and maybe build a real schema.
398398
// output += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ";
399399
// output += xsi:schemaLocation="http://www.kosherjava.com/zmanim zmanim.xsd"
400-
} else if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.ZmanimCalendar")) {
400+
} else if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.ZmanimCalendar")) {
401401
sb.append("BasicZmanim");
402402
// TODO: use proper schema ref, and maybe build a real schema.
403403
// output += "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" ";
@@ -473,11 +473,11 @@ public static String toXML(AstronomicalCalendar astronomicalCalendar) {
473473
sb.append("\t").append(otherList.get(i)).append("\n");
474474
}
475475

476-
if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.AstronomicalCalendar")) {
476+
if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.AstronomicalCalendar")) {
477477
sb.append("</AstronomicalTimes>");
478-
} else if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.ComplexZmanimCalendar")) {
478+
} else if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.ComplexZmanimCalendar")) {
479479
sb.append("</Zmanim>");
480-
} else if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.ZmanimCalendar")) {
480+
} else if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.ZmanimCalendar")) {
481481
sb.append("</BasicZmanim>");
482482
}
483483
return sb.toString();
@@ -490,7 +490,7 @@ public static String toXML(AstronomicalCalendar astronomicalCalendar) {
490490
* {
491491
* &quot;metadata&quot;:{
492492
* &quot;date&quot;:&quot;1969-02-08&quot;,
493-
* &quot;type&quot;:&quot;net.sourceforge.zmanim.AstronomicalCalendar&quot;,
493+
* &quot;type&quot;:&quot;com.kosherjava.zmanim.AstronomicalCalendar&quot;,
494494
* &quot;algorithm&quot;:&quot;US Naval Almanac Algorithm&quot;,
495495
* &quot;location&quot;:&quot;Lakewood, NJ&quot;,
496496
* &quot;latitude&quot;:&quot;40.095965&quot;,
@@ -519,7 +519,7 @@ public static String toXML(AstronomicalCalendar astronomicalCalendar) {
519519
* {
520520
* &quot;metadata&quot;:{
521521
* &quot;date&quot;:&quot;1969-02-08&quot;,
522-
* &quot;type&quot;:&quot;net.sourceforge.zmanim.AstronomicalCalendar&quot;,
522+
* &quot;type&quot;:&quot;com.kosherjava.zmanim.AstronomicalCalendar&quot;,
523523
* &quot;algorithm&quot;:&quot;US Naval Almanac Algorithm&quot;,
524524
* &quot;location&quot;:&quot;Lakewood, NJ&quot;,
525525
* &quot;latitude&quot;:&quot;40.095965&quot;,
@@ -562,11 +562,11 @@ public static String toJSON(AstronomicalCalendar astronomicalCalendar) {
562562

563563
sb.append("},\n\"");
564564

565-
if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.AstronomicalCalendar")) {
565+
if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.AstronomicalCalendar")) {
566566
sb.append("AstronomicalTimes");
567-
} else if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.ComplexZmanimCalendar")) {
567+
} else if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.ComplexZmanimCalendar")) {
568568
sb.append("Zmanim");
569-
} else if (astronomicalCalendar.getClass().getName().equals("net.sourceforge.zmanim.ZmanimCalendar")) {
569+
} else if (astronomicalCalendar.getClass().getName().equals("com.kosherjava.zmanim.ZmanimCalendar")) {
570570
sb.append("BasicZmanim");
571571
}
572572
sb.append("\":{\n");

0 commit comments

Comments
 (0)