Buggy code:
public class JewishDateHelper { String locationName = "" ; double locationLat = 0 ; double locationLng = 0 ; TimeZone timeZone ; public Bundle vars = new Bundle ( ) ; public void setLocation ( String name , double lat , double lng , String tZ ) { } public void updateDates ( ) { Calendar englishDate = Calendar . getInstance ( ) ; englishDate . setTimeZone ( timeZone ) ; double elevation = 0 ; GeoLocation location = new GeoLocation ( locationName , locationLat , locationLng , elevation , timeZone ) ; ComplexZmanimCalendar czc = new ComplexZmanimCalendar ( location ) ; DateTimeZone zone = DateTimeZone . forTimeZone ( timeZone ) ; DateTime currentTime = new DateTime ( zone ) ; Date sunset = czc . getSunset ( ) ; DateTime sunsetTime = new DateTime ( sunset ) ; String evePrefixHebrew = "" ; String evePrefixEnglish = "" ; String dayOrNight ; boolean afterSunset ; if ( currentTime . isAfter ( sunsetTime ) ) { evePrefixEnglish += "Eve<seq2seq4repair_space>of<seq2seq4repair_space>" ; evePrefixHebrew = "ליל<seq2seq4repair_space>" ; afterSunset = true ; englishDate . add ( Calendar . DATE , 1 ) ; dayOrNight = "Night" ; } else { dayOrNight = "Day" ; afterSunset = false ; } vars . putBoolean ( "afterSunset" , afterSunset ) ; JewishCalendar jewishDate = new JewishCalendar ( ) ; jewishDate . setDate ( englishDate ) ; JewishCalendar jewishDateShabbos = new JewishCalendar ( ) ; Calendar englishDateShabbos = englishDate ; int daysToShabbos = 7 - ( jewishDate . getDayOfWeek ( ) ) ; englishDateShabbos . add ( Calendar . DATE , daysToShabbos ) ; jewishDateShabbos . setDate ( englishDateShabbos ) ; HebrewDateFormatter dateFormatterHebrew = new HebrewDateFormatter ( ) ; dateFormatterHebrew . setHebrewFormat ( true ) ; HebrewDateFormatter dateFormatterEnglish = new HebrewDateFormatter ( ) ; String shortDate = ( ( jewishDate . getJewishDayOfMonth ( ) ) + "<seq2seq4repair_space>" ) + ( dateFormatterEnglish . formatMonth ( jewishDate ) ) ; String longDate = evePrefixEnglish + shortDate ; vars . putString ( "shortDate" , shortDate ) ; vars . putString ( "longDate" , longDate ) ; <START_BUG> String shortHebrewDate = dateFormatterEnglish . format ( jewishDate ) ; <END_BUG> String longHebrewDate = evePrefixHebrew + shortHebrewDate ; vars . putString ( "shortHebrewDate" , shortHebrewDate ) ; vars . putString ( "longHebrewDate" , longHebrewDate ) ; String descriptionString = "" ; Date candleLighting = czc . getCandleLighting ( ) ; SimpleDateFormat candleLightingFormat = new SimpleDateFormat ( "h:m" , Locale . US ) ; String candleLightingTime = candleLightingFormat . format ( candleLighting ) ; if ( ( ( jewishDate . getDayOfWeek ( ) ) == 6 ) && ( ! afterSunset ) ) { descriptionString += "Candle<seq2seq4repair_space>Lighting:<seq2seq4repair_space>" + candleLightingTime ; descriptionString += ",<seq2seq4repair_space>" ; } String englishParsha = dateFormatterEnglish . formatParsha ( jewishDateShabbos ) ; String hebrewParsha = jewishDateShabbos . toString ( ) ; descriptionString += "Parshas<seq2seq4repair_space>" + englishParsha ; vars . putString ( "englishParsha" , englishParsha ) ; vars . putString ( "hebrewParsha" , hebrewParsha ) ; if ( ( jewishDate . isYomTov ( ) ) || ( jewishDate . isTaanis ( ) ) ) { descriptionString += ",<seq2seq4repair_space>" ; descriptionString += dateFormatterEnglish . formatYomTov ( jewishDate ) ; } if ( jewishDate . isChanukah ( ) ) { descriptionString += ",<seq2seq4repair_space>" ; descriptionString += ( ( ( ( jewishDate . getDayOfChanukah ( ) ) + ( JewishDateHelper . appendInt ( jewishDate . getDayOfChanukah ( ) ) ) ) + "<seq2seq4repair_space>" ) + dayOrNight ) + "<seq2seq4repair_space>of<seq2seq4repair_space>Chanukah" ; } if ( jewishDate . isRoshChodesh ( ) ) { descriptionString += ",<seq2seq4repair_space>" ; descriptionString += dateFormatterEnglish . formatRoshChodesh ( jewishDate ) ; } if ( ( jewishDate . getDayOfOmer ( ) ) > 0 ) { descriptionString += ",<seq2seq4repair_space>" ; descriptionString += dateFormatterHebrew . formatOmer ( jewishDate ) ; } vars . putString ( "longText" , descriptionString ) ; } public static String appendInt ( int number ) { } }

Fix:
String shortHebrewDate = dateFormatterHebrew . format ( jewishDate ) ;