Buggy code:
public class WxClient { private static final Logger log = LoggerFactory . getLogger ( WxClient . class ) ; private static final int TEMP_PORT = 8080 ; private static final int RAIN_PORT = 8081 ; DecimalFormat decForm = new DecimalFormat ( "##0.00" ) ; DateTimeFormatter dateForm = DateTimeFormatter . ofPattern ( "yyyy-MM-d<seq2seq4repair_space>H:m:s" ) ; private TempSensor temp ; private RainSensor wxStation ; public WxClient ( ) { } public static void main ( String [ ] args ) { } public void getAndDisplayData ( String serverIP ) { if ( ( ( temp = ( ( TempSensor ) ( readData ( serverIP , WxClient . TEMP_PORT ) ) ) ) != null ) && ( ( wxStation = ( ( RainSensor ) ( readData ( serverIP , WxClient . RAIN_PORT ) ) ) ) != null ) ) { WxClient . log . info ( "Print<seq2seq4repair_space>last<seq2seq4repair_space>24<seq2seq4repair_space>hours<seq2seq4repair_space>worth<seq2seq4repair_space>of<seq2seq4repair_space>from<seq2seq4repair_space>history" ) ; TempReading [ ] tArray = temp . toArray ( ) ; int len = temp . queSize ( ) ; int begin = 0 ; if ( len >= ( ( 15 * 4 ) * 24 ) ) begin = len - ( ( 15 * 4 ) * 24 ) ; for ( int i = begin ; i < len ; i ++ ) { WxClient . log . info ( "Temp<seq2seq4repair_space>is<seq2seq4repair_space>{}<seq2seq4repair_space>Time<seq2seq4repair_space>was<seq2seq4repair_space>{}" , decForm . format ( tArray [ i ] . getTemp ( ) ) , dateForm . format ( tArray [ i ] . getTempTime ( ) ) ) ; } <START_BUG> WxClient . log . info ( "Overall<seq2seq4repair_space>amount<seq2seq4repair_space>of<seq2seq4repair_space>Rain<seq2seq4repair_space>is:<seq2seq4repair_space>{}" , decForm . format ( wxStation . getRainLevel ( ) ) ) ; <END_BUG> WxClient . log . info ( "Amount<seq2seq4repair_space>of<seq2seq4repair_space>rain<seq2seq4repair_space>since<seq2seq4repair_space>there's<seq2seq4repair_space>been<seq2seq4repair_space>an<seq2seq4repair_space>8<seq2seq4repair_space>hour<seq2seq4repair_space>gap<seq2seq4repair_space>(when<seq2seq4repair_space>it<seq2seq4repair_space>was<seq2seq4repair_space>actually<seq2seq4repair_space>raining)<seq2seq4repair_space>is{}<seq2seq4repair_space>" , decForm . format ( wxStation . getAccumulatedRainLevel ( ChronoUnit . HOURS , 8 ) ) ) ; WxClient . log . info ( "Rate//Hour<seq2seq4repair_space>(by<seq2seq4repair_space>min<seq2seq4repair_space>&<seq2seq4repair_space>Hr):<seq2seq4repair_space>{}<seq2seq4repair_space>{}" , decForm . format ( wxStation . getRainPerHour ( ChronoUnit . MINUTES ) ) , decForm . format ( wxStation . getRainPerHour ( ChronoUnit . HOURS ) ) ) ; WxClient . log . info ( "Last<seq2seq4repair_space>time<seq2seq4repair_space>it<seq2seq4repair_space>Rained<seq2seq4repair_space>{}" , dateForm . format ( wxStation . getLastTimeSawRain ( ) ) ) ; WxClient . log . info ( "When<seq2seq4repair_space>this<seq2seq4repair_space>rain<seq2seq4repair_space>started<seq2seq4repair_space>{}" , dateForm . format ( wxStation . getWhenStartedRaining ( ) ) ) ; WxClient . log . info ( "Latest<seq2seq4repair_space>Temp<seq2seq4repair_space>{}<seq2seq4repair_space>Max<seq2seq4repair_space>{}<seq2seq4repair_space>Min<seq2seq4repair_space>{}" , decForm . format ( temp . getCurrentTemp ( ) ) , decForm . format ( temp . getMaxTemp ( ) ) , decForm . format ( temp . getMinTemp ( ) ) ) ; } else { WxClient . log . warn ( "Network<seq2seq4repair_space>error<seq2seq4repair_space>connecting<seq2seq4repair_space>to<seq2seq4repair_space>Raspi" ) ; } } private Object readData ( String ip , int port ) { } No newline ; at end ; of file ; }

Fix:
WxClient . log . info ( "Overall<seq2seq4repair_space>amount<seq2seq4repair_space>of<seq2seq4repair_space>Rain<seq2seq4repair_space>is:<seq2seq4repair_space>{}" , decForm . format ( wxStation . getRainTotal ( ) ) ) ;