package hudson.plugins.scm_sync_configuration.extensions;

import hudson.Extension;
import hudson.XmlFile;
import hudson.model.Saveable;
import hudson.model.listeners.SaveableListener;
import hudson.plugins.scm_sync_configuration.ScmSyncConfigurationPlugin;
import hudson.plugins.scm_sync_configuration.strategies.ScmSyncStrategy;

import java.util.logging.Logger;

@Extension
public class ScmSyncConfigurationSaveableListener extends SaveableListener{
	
    private static final Logger LOGGER = Logger.getLogger(ScmSyncConfigurationSaveableListener.class.getName());

	public ScmSyncConfigurationSaveableListener(){
	}
	
	@Override
	public void onChange(Saveable o, XmlFile file) {
		
		super.onChange(o, file);
		
		ScmSyncConfigurationPlugin plugin = ScmSyncConfigurationPlugin.getInstance();
		ScmSyncStrategy strategy = plugin.getStrategyForSaveable(o, file.getFile());
		
		if(strategy != null){
			plugin.synchronizeFile(file.getFile());
		}
	}
}
@@ -338,44 +338,8 @@
 %0D%0A%0D%0A
-import java.util.logging.Logger;%0D%0A%0D%0A
 @Ext
@@ -428,179 +428,8 @@
 %7B%0D%0A%09
-%0D%0A    private static final Logger LOGGER = Logger.getLogger(ScmSyncConfigurationSaveableListener.class.getName());%0D%0A%0D%0A%09public ScmSyncConfigurationSaveableListener()%7B%0D%0A%09%7D%0D%0A
 %09%0D%0A%09

Remove useless code