Buggy code:
public class AzureScheduledTaskQueues implements ScheduledTaskQueues { private static final Logger logger = LoggerFactory . getLogger ( AzureScheduledTaskQueues . class ) ; public static final AttemptStrategy DEFAULT_ATTEMPT_STRATEGY = new AttemptStrategy ( ) . withWaitStrategy ( WaitStrategies . threadSleepStrategy ( ) ) . withStopStrategy ( StopStrategies . stopAfterTotalDuration ( Duration . ofSeconds ( 90 ) ) ) . withBackoffStrategy ( BackoffStrategies . fibonacciBackoff ( 500L , ( 1000L * 10 ) ) ) ; public static final String DEFAULT_TABLE_NAME = "ScheduledTaskQueues" ; protected String tableName = AzureScheduledTaskQueues . DEFAULT_TABLE_NAME ; protected CloudTableClient tableClient ; protected volatile boolean tableExists = false ; protected AttemptStrategy attemptStrategy = AzureScheduledTaskQueues . DEFAULT_ATTEMPT_STRATEGY ; protected int taskIdLengthInPartitionKey = 2 ; public AzureScheduledTaskQueues ( ) { } public AzureScheduledTaskQueues ( CloudStorageAccount storageAccount , String tableName , Integer taskIdLengthInPartitionKey , AttemptStrategy attemptStrategy , Consumer < TableRequestOptions > defaultOptionsConfigurer ) { } public AzureScheduledTaskQueues ( CloudStorageAccount storageAccount , String tableName , Integer taskIdLengthInPartitionKey , AttemptStrategy attemptStrategy ) { } public AzureScheduledTaskQueues ( CloudStorageAccount storageAccount , String tableName , Integer taskIdLengthInPartitionKey ) { } public AzureScheduledTaskQueues ( CloudStorageAccount storageAccount , String tableName ) { } public AzureScheduledTaskQueues ( CloudStorageAccount storageAccount , Integer taskIdLengthInPartitionKey , Consumer < TableRequestOptions > defaultOptionsConfigurer ) { } public AzureScheduledTaskQueues ( CloudStorageAccount storageAccount ) { } public AzureScheduledTaskQueues ( CloudTableClient tableClient , String tableName , Integer taskIdLengthInPartitionKey , AttemptStrategy attemptStrategy ) { } public AzureScheduledTaskQueues ( CloudTableClient tableClient , AttemptStrategy attemptStrategy ) { } public AzureScheduledTaskQueues ( CloudTableClient tableClient ) { } public void setTableName ( String tableName ) { } public void setTableClient ( CloudTableClient tableClient ) { } public void setTableClient ( AttemptStrategy attemptStrategy ) { } public void setTaskIdLengthInPartitionKey ( int taskIdLengthInPartitionKey ) { } protected String newUniqueTaskId ( ) { } @ Override public String put ( String queue , Serializable detail , Instant expectedExecutionTime , String predecessorId ) throws TaskQueueStorageInfrastructureException { } @ Override public List < ReadOnlyScheduledTask > get ( String queue , Instant expectedExecutionTime , int maxNumOfTasks , String processorId , Instant timeout ) throws TaskQueueStorageInfrastructureException { } protected void update ( String id , String processorId , BiConsumerThrowsExceptions < CloudTable , TaskEntity > operation ) throws NoSuchTaskException , NotOwningTaskException , TaskQueueStorageInfrastructureException { } @ Override public void finish ( String id , String processorId ) throws NoSuchTaskException , NotOwningTaskException , TaskQueueStorageInfrastructureException { } @ Override public void abort ( String id , String processorId ) throws NoSuchTaskException , NotOwningTaskException , TaskQueueStorageInfrastructureException { } @ Override public void renewTimeout ( String id , String processorId , Instant newTimeout ) throws NoSuchTaskException , NotOwningTaskException , TaskQueueStorageInfrastructureException { } @ Override public void clear ( String queue ) throws TaskQueueStorageInfrastructureException { } @ Override public void clearAll ( ) throws TaskQueueStorageInfrastructureException { try { CloudTable table = getTableReference ( ) ; AzureStorageUtility . deleteEntitiesIfExists ( table , ( ( String ) ( null ) ) ) ; <START_BUG> AzureScheduledTaskQueues . logger . debug ( "Deleted<seq2seq4repair_space>all<seq2seq4repair_space>tasks<seq2seq4repair_space>in<seq2seq4repair_space>all<seq2seq4repair_space>queues<seq2seq4repair_space>in<seq2seq4repair_space>table:<seq2seq4repair_space>{}" , ( table == null ? null : table . getName ( ) ) ) ; <END_BUG> } catch ( Exception e ) { throw new TaskQueueStorageInfrastructureException ( ( "Failed<seq2seq4repair_space>to<seq2seq4repair_space>delete<seq2seq4repair_space>all<seq2seq4repair_space>entities<seq2seq4repair_space>in<seq2seq4repair_space>table:<seq2seq4repair_space>" + ( tableName ) ) , e ) ; } } protected CloudTable getTableReference ( ) throws TaskQueueStorageInfrastructureException { } }

Fix:
AzureScheduledTaskQueues . logger . debug ( "Deleted<seq2seq4repair_space>all<seq2seq4repair_space>tasks<seq2seq4repair_space>in<seq2seq4repair_space>all<seq2seq4repair_space>queues<seq2seq4repair_space>in<seq2seq4repair_space>table:<seq2seq4repair_space>{}" , table . getName ( ) ) ;