@@ -640,6 +640,7 @@ private String getUrl( final InetAddress address, final int port, final ChronosR
640640 if ( this .secure ) {
641641 url .append ( "https://" );
642642 } else {
643+ //noinspection HttpUrlsUsage
643644 url .append ( "http://" );
644645 }
645646 if ( this .useHostname ) {
@@ -838,7 +839,7 @@ public final class ChronosLogHandler {
838839 private final Properties query ;
839840 private final Map <String , Object > parameters ;
840841
841- AtomicInteger sequenceNumber = new AtomicInteger ();
842+ final AtomicInteger sequenceNumber = new AtomicInteger ();
842843
843844
844845 public ChronosLogHandler ( final ChronosJob job ) {
@@ -865,11 +866,9 @@ public void publish( String message ) {
865866 final JSONObject status = jsonResponse .getJSONObject ( ChronosRestApi .STATUS_OBJECT_KEY );
866867
867868 if ( status .getInt ( ChronosRestApi .STATUS_CODE_KEY ) != ChronosRestApi .STATUS_CODE__SUCCESS ) {
868- log .warn ( "Service returned: {0}: {1}" ,
869- new Object []{
870- status .getInt ( ChronosRestApi .STATUS_CODE_KEY ),
871- status .getString ( ChronosRestApi .STATUS_MESSAGE_KEY )
872- } );
869+ log .warn ( "Service returned: {}: {}" ,
870+ status .getInt ( ChronosRestApi .STATUS_CODE_KEY ),
871+ status .getString ( ChronosRestApi .STATUS_MESSAGE_KEY ) );
873872 }
874873 } catch ( UnirestException ex ) {
875874 log .warn ( "Exception while publishing log records." , ex );
0 commit comments