@SuppressWarnings("unchecked") @Override protected Object applyUpdatesToManagedData(Object updates){
  boolean madeChanges=false;
  List<String> words=(List<String>)updates;
  log.info("Applying updates: " + words);
  boolean ignoreCase=getIgnoreCase();
  for (  String word : words) {
    if (ignoreCase)     word=word.toLowerCase(Locale.ROOT);
    if (managedWords.add(word)) {
      madeChanges=true;
      log.info("Added word: {}",word);
    }
  }
  return madeChanges ? managedWords : null;
}

@ SuppressWarnings ( "unchecked" ) @ Override protected Object applyUpdatesToManagedData ( Object updates ) { boolean madeChanges = false ; List < String > words = ( List < String > ) updates ; log . info ( "Applying updates: " + words ) ; boolean ignoreCase = getIgnoreCase ( ) ; for ( String word : words ) { if ( ignoreCase ) word = word . toLowerCase ( Locale . ROOT ) ; if ( managedWords . add ( word ) ) { madeChanges = true ; log . info ( "Added word: {}" , word ) ; } } return madeChanges ? managedWords : null ; }
applies updates to the word set being managed by this resource .
