Removed unused code

Hid unused code warnings for local variables that might be useful for debugging


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2529 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Derek Hulley
2006-03-09 13:59:30 +00:00
parent e49879f557
commit 0a30d7f036
11 changed files with 11 additions and 21 deletions

View File

@@ -143,7 +143,7 @@ public class CIFSServer implements ApplicationListener
logger.info("Starting server " + server.getProtocolName() + " ...");
// Start the server
@SuppressWarnings("unused")
String serverName = server.getConfiguration().getServerName();
server.startServer();
}

View File

@@ -32,10 +32,11 @@ import org.alfresco.util.BaseSpringTest;
*
* @author Roy Wetherall
*/
@SuppressWarnings("unused")
public class ConfigurableServiceImplTest extends BaseSpringTest
{
public NodeService nodeService;
private ServiceRegistry serviceRegistry;
private ServiceRegistry serviceRegistry;
private ConfigurableService configurableService;
private StoreRef testStoreRef;
private NodeRef rootNodeRef;

View File

@@ -23,8 +23,6 @@ import java.util.Map;
import org.alfresco.repo.content.MimetypeMap;
import org.alfresco.service.cmr.repository.ContentReader;
import org.alfresco.service.cmr.repository.ContentWriter;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;

View File

@@ -43,6 +43,11 @@ import org.alfresco.util.ApplicationContextHelper;
import org.apache.lucene.index.IndexWriter;
import org.springframework.context.ApplicationContext;
/**
*
* @author Andy Hind
*/
@SuppressWarnings("unused")
public class ConcurrentNodeServiceTest extends TestCase
{
public static final String NAMESPACE = "http://www.alfresco.org/test/BaseNodeServiceTest";

View File

@@ -40,8 +40,6 @@ import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.namespace.QName;
import org.alfresco.service.transaction.TransactionService;
import org.alfresco.util.ApplicationContextHelper;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.context.ApplicationContext;
/**
@@ -62,7 +60,6 @@ public class PerformanceNodeServiceTest extends TestCase
private int testStringPropertyCount = 10;
private int testContentPropertyCount = 10;
private static Log logger = LogFactory.getLog(PerformanceNodeServiceTest.class);
private static ApplicationContext applicationContext = ApplicationContextHelper.getApplicationContext();
protected DictionaryService dictionaryService;

View File

@@ -25,8 +25,6 @@ import org.alfresco.service.cmr.repository.NodeRef;
import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.namespace.NamespaceService;
import org.alfresco.service.namespace.QName;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
/**
* Registers and contains the behaviour specific to the
@@ -36,9 +34,6 @@ import org.apache.commons.logging.LogFactory;
*/
public class ReferenceableAspect implements CopyServicePolicies.OnCopyNodePolicy
{
// Logger
private static final Log logger = LogFactory.getLog(ReferenceableAspect.class);
// Dependencies
private PolicyComponent policyComponent;

View File

@@ -42,6 +42,7 @@ import org.alfresco.service.transaction.TransactionService;
*
* @author Derek Hulley
*/
@SuppressWarnings("unused")
public class DbNodeServiceImplTest extends BaseNodeServiceTest
{
private TransactionService txnService;

View File

@@ -24,7 +24,6 @@ import org.alfresco.repo.transaction.TransactionUtil;
import org.alfresco.repo.transaction.TransactionUtil.TransactionWork;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.cmr.repository.StoreRef;
import org.alfresco.service.cmr.search.SearchService;
import org.alfresco.service.transaction.TransactionService;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
@@ -46,8 +45,6 @@ public class FtsIndexRecoveryComponent implements IndexRecovery
private TransactionService transactionService;
/** the FTS indexer that we will prompt to pick up on any un-indexed text */
private FullTextSearchIndexer ftsIndexer;
/** the component providing searches of the indexed nodes */
private SearchService searcher;
/** the component giving direct access to <b>node</b> instances */
private NodeService nodeService;
/** the workspaces to reindex */

View File

@@ -18,10 +18,8 @@ package org.alfresco.repo.node.index;
import junit.framework.TestCase;
import org.alfresco.repo.search.Indexer;
import org.alfresco.repo.transaction.TransactionUtil;
import org.alfresco.repo.transaction.TransactionUtil.TransactionWork;
import org.alfresco.service.cmr.repository.NodeService;
import org.alfresco.service.transaction.TransactionService;
import org.alfresco.util.ApplicationContextHelper;
import org.springframework.context.ApplicationContext;
@@ -36,16 +34,12 @@ public class FtsIndexRecoveryComponentTest extends TestCase
private static ApplicationContext ctx = ApplicationContextHelper.getApplicationContext();
private IndexRecovery indexRecoverer;
private NodeService nodeService;
private TransactionService txnService;
private Indexer indexer;
public void setUp() throws Exception
{
indexRecoverer = (IndexRecovery) ctx.getBean("indexRecoveryComponent");
txnService = (TransactionService) ctx.getBean("transactionComponent");
nodeService = (NodeService) ctx.getBean("nodeService");
indexer = (Indexer) ctx.getBean("indexerComponent");
}
public void testReindexing() throws Exception

View File

@@ -49,6 +49,7 @@ import org.springframework.context.ApplicationContext;
*
* @author Derek Hulley
*/
@SuppressWarnings("unused")
public class IntegrityTest extends TestCase
{
private static Log logger = LogFactory.getLog(IntegrityTest.class);

View File

@@ -80,6 +80,7 @@ import org.springframework.context.ApplicationContext;
* @author andyh
*
*/
@SuppressWarnings("unused")
public class LuceneTest extends TestCase
{
private static final String TEST_NAMESPACE = "http://www.alfresco.org/test/lucenetest";