Compiler: Eclipse Compiler for Java(TM) Version: 0.C58, 3.8.0
Number of source files: 181 Number of classfiles: 244
Problems: 131 (Errors: 0 Warnings: 131 )
The value of the local variable webComp is not used
ClasspathDependencyEARTests.java :
223 : IVirtualComponent webComp = createWebProject(JEE5);
The value of the local variable output is not used
ClasspathDependencyEARTests.java :
505 : IFolder output = util.getFolder("build").getFolder("classes");
The value of the local variable utilComp is not used
ClasspathDependencyEARTests.java :
512 : final IVirtualComponent utilComp = ComponentCore.createComponent(util);
The value of the local variable entry is not used
ClasspathDependencyEARTests.java :
630 : IClasspathEntry entry = (IClasspathEntry) entries.get(0);
The value of the local variable webJavaProject is not used
ClasspathDependencyValidationTests.java :
190 : final IJavaProject webJavaProject = JavaCore.create(webProject);
The value of the local variable earLibContainer is not used
ClasspathDependencyValidationTests.java :
295 : IClasspathEntry earLibContainer = null;
The value of the local variable webAppLibContainer is not used
ClasspathDependencyValidationTests.java :
296 : IClasspathEntry webAppLibContainer = null;
The value of the local variable jreContainer is not used
ClasspathDependencyValidationTests.java :
297 : IClasspathEntry jreContainer = null;
The method testInvalidContainer(IJavaProject, IClasspathEntry) from the type ClasspathDependencyValidationTests is never used locally
ClasspathDependencyValidationTests.java :
326 : private void testInvalidContainer(final IJavaProject javaProject, final IClasspathEntry entry) throws Exception {
The value of the local variable utilComp is not used
ClasspathDependencyWebTests.java :
295 : final IVirtualComponent utilComp = ComponentCore.createComponent(util);
The value of the local variable entry is not used
ClasspathDependencyWebTests.java :
417 : IClasspathEntry entry = (IClasspathEntry) entries.get(0);
The value of the local variable jobMgr is not used
DependencyUtil.java :
64 : final IJobManager jobMgr = Platform.getJobManager();
The value of the local variable jobMgr is not used
DependencyUtil.java :
74 : final IJobManager jobMgr = Platform.getJobManager();
The value of the field ProjectUtil.listener is not used
ProjectUtil.java :
364 : private static ClasspathUpdateJobListener listener = new ClasspathUpdateJobListener();
The value of the field ProjectUtil.ClasspathUpdateJobListener.isDone is not used
ProjectUtil.java :
368 : public boolean isDone = false;
The value of the field AppClientArtifactEditFVTest.appClientModuleName is not used
AppClientArtifactEditFVTest.java :
19 : private String appClientModuleName;
The method validateResource() from the type AppClientArtifactEditFVTest is never used locally
AppClientArtifactEditFVTest.java :
84 : private void validateResource() {
The method createResourceComponent() from the type AppClientArtifactEditFVTest is never used locally
AppClientArtifactEditFVTest.java :
99 : private ComponentResource createResourceComponent() {
The value of the local variable testURI is not used
AppClientArtifactEditTest.java :
202 : boolean testURI = uri.equals(TestWorkspace.APP_CLIENT_DD_XMI_RESOURCE_URI);
The value of the local variable resource is not used
AppClientArtifactEditTest.java :
220 : Resource resource = edit.getDeploymentDescriptorResource();
The value of the local variable edit2 is not used
AppClientArtifactEditTest.java :
221 : AppClientArtifactEdit edit2 = new AppClientArtifactEdit(getArtifactEditModelforRead()) {
The value of the local variable wbComponent is not used
AppClientArtifactEditTest.java :
266 : WorkbenchComponent wbComponent = moduleCore.getComponent();
The value of the local variable wbComponent is not used
AppClientArtifactEditTest.java :
285 : WorkbenchComponent wbComponent = moduleCore.getComponent();
The value of the local variable object is not used
AppClientArtifactEditTest.java :
398 : Object object = edit.getContentModelRoot();
The value of the field ConnectorArtifactEditFVTest.jcaModuleName is not used
ConnectorArtifactEditFVTest.java :
19 : private String jcaModuleName;
The method pass(ApplicationClient) from the type ConnectorArtifactEditFVTest is never used locally
ConnectorArtifactEditFVTest.java :
82 : private static void pass(ApplicationClient jca) {
The method validateResource() from the type ConnectorArtifactEditFVTest is never used locally
ConnectorArtifactEditFVTest.java :
87 : private void validateResource() {
The method createResourceComponent() from the type ConnectorArtifactEditFVTest is never used locally
ConnectorArtifactEditFVTest.java :
101 : private ComponentResource createResourceComponent() {
The value of the field ConnectorArtifactEditTest.jcaModuleName is not used
ConnectorArtifactEditTest.java :
20 : private String jcaModuleName;
The value of the local variable wbComponent is not used
ConnectorArtifactEditTest.java :
84 : WorkbenchComponent wbComponent = null;
The value of the local variable wbComponent is not used
ConnectorArtifactEditTest.java :
112 : WorkbenchComponent wbComponent = moduleCore.getComponent();
The value of the local variable wbComponent is not used
ConnectorArtifactEditTest.java :
131 : WorkbenchComponent wbComponent = moduleCore.getComponent();
The value of the local variable wbComponent is not used
EARArtifactEditTest.java :
119 : WorkbenchComponent wbComponent = null;
The value of the local variable wbComponent is not used
EARArtifactEditTest.java :
147 : WorkbenchComponent wbComponent = moduleCore.getComponent();
The value of the local variable uriExist is not used
EARArtifactEditTest.java :
279 : boolean uriExist = edit.uriExists(TestWorkspace.EJB_MODULE_URI.toString());
The value of the field EJBArtifactEditFVTest.ejbModuleName is not used
EJBArtifactEditFVTest.java :
30 : private String ejbModuleName;
The method validateResource() from the type EJBArtifactEditFVTest is never used locally
EJBArtifactEditFVTest.java :
92 : private void validateResource() {
The method createResourceComponent() from the type EJBArtifactEditFVTest is never used locally
EJBArtifactEditFVTest.java :
106 : private ComponentResource createResourceComponent() {
The value of the local variable uri is not used
EJBArtifactEditTest.java :
165 : String uri = edit.getEJBJarXmiResource().toString();
The value of the local variable test is not used
EJBArtifactEditTest.java :
254 : EnterpriseArtifactEdit test = new EJBArtifactEdit(getArtifactEditModelforRead()) {
The method test() from the type new EJBArtifactEdit(){} is never used locally
EJBArtifactEditTest.java :
260 : public void test() {
The value of the field EarArtiFactEditFVTest.earModuleName is not used
EarArtiFactEditFVTest.java :
33 : private String earModuleName;
The method pass(ApplicationClient) from the type EarArtiFactEditFVTest is never used locally
EarArtiFactEditFVTest.java :
95 : private static void pass(ApplicationClient ear) {
The method validateResource() from the type EarArtiFactEditFVTest is never used locally
EarArtiFactEditFVTest.java :
100 : private void validateResource() {
The method createResourceComponent() from the type EarArtiFactEditFVTest is never used locally
EarArtiFactEditFVTest.java :
114 : private ComponentResource createResourceComponent() {
The value of the field EnterpriseArtifactEditTest.earModuleName is not used
EnterpriseArtifactEditTest.java :
26 : private String earModuleName;
The value of the local variable wbComponent is not used
EnterpriseArtifactEditTest.java :
41 : WorkbenchComponent wbComponent = null;
The value of the field JaxRPCMapArtifactEditFVTest.serverContextData is not used
JaxRPCMapArtifactEditFVTest.java :
17 : private String serverContextData = TestWorkspace.WEB_SERVER_CONTEXT_ROOT + "Test";
The method updateClient(WebServices) from the type JaxRPCMapArtifactEditFVTest is never used locally
JaxRPCMapArtifactEditFVTest.java :
30 : private void updateClient(WebServices client) {
The method pass() from the type JaxRPCMapArtifactEditFVTest is never used locally
JaxRPCMapArtifactEditFVTest.java :
37 : private void pass() {
The value of the local variable webapp is not used
JaxRPCMapArtifactEditFVTest.java :
51 : WebApp webapp = webedit.getWebApp();
The method pass(WebServices) from the type JaxRPCMapArtifactEditFVTest is never used locally
JaxRPCMapArtifactEditFVTest.java :
56 : private static void pass(WebServices webservice) {
The method validateResource() from the type JaxRPCMapArtifactEditFVTest is never used locally
JaxRPCMapArtifactEditFVTest.java :
63 : private void validateResource() {
The value of the field WSDDArtifactEditFVTest.webModuleName is not used
WSDDArtifactEditFVTest.java :
16 : private String webModuleName;
The value of the field WSDDArtifactEditFVTest.serverContextData is not used
WSDDArtifactEditFVTest.java :
17 : private String serverContextData = TestWorkspace.WEB_SERVER_CONTEXT_ROOT + "Test";
The method validateResource() from the type WSDDArtifactEditFVTest is never used locally
WSDDArtifactEditFVTest.java :
80 : private void validateResource() {
The value of the field WebArtifactEditTest.webModuleName is not used
WebArtifactEditTest.java :
25 : private String webModuleName;
The value of the local variable uri is not used
WebArtifactEditTest.java :
61 : String uri = edit.getDeploymentDescriptorResource().getURI().toString();
The method createProject(IProjectDescription, IProject, IProgressMonitor) from the type EJBDeployTest is never used locally
EJBDeployTest.java :
77 : private void createProject(IProjectDescription description, IProject projectHandle, IProgressMonitor monitor) throws CoreException, OperationCanceledException {
The value of the local variable javaResource is not used
EJBDeployTest.java :
119 : IModuleResource javaResource = javaMembers[j];
The value of the local variable operationStatus is not used
EJBDeployTest.java :
143 : IStatus operationStatus = dm.getDefaultOperation().execute(new NullProgressMonitor(), null);
The method getResourceSet(String) from the type EJBDeployTest is never used locally
EJBDeployTest.java :
152 : private ProjectResourceSet getResourceSet(String projName) {
The method createEarProject(String) from the type EJBDeployTest is never used locally
EJBDeployTest.java :
172 : private IProject createEarProject(String projName) throws ExecutionException {
The method registerFactory(URI, ResourceSet, Resource.Factory) from the type EJBDeployTest is never used locally
EJBDeployTest.java :
211 : private void registerFactory(URI uri, ResourceSet resSet, Resource.Factory factory) {
The method getResourceSet() from the type EJBDeployTest is never used locally
EJBDeployTest.java :
215 : private ResourceSet getResourceSet() {
The method createConnectorComponent(int, String, String) from the type PortedComponentCreationTest is never used locally
PortedComponentCreationTest.java :
89 : private void createConnectorComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
The method createWebComponent(int, String, String) from the type PortedComponentCreationTest is never used locally
PortedComponentCreationTest.java :
98 : private void createWebComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
The method createAppClientComponent(int, String, String) from the type PortedComponentCreationTest is never used locally
PortedComponentCreationTest.java :
107 : private void createAppClientComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
The method createEjbComponent(int, String, String) from the type PortedComponentCreationTest is never used locally
PortedComponentCreationTest.java :
116 : private void createEjbComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
The method createEARComponent(int, String, String) from the type PortedComponentCreationTest is never used locally
PortedComponentCreationTest.java :
125 : private void createEARComponent(int j2eeVersion, String aModuleName, String projectName) throws Exception{
The value of the field FlexibleProjectBuilderTest.emfContext is not used
FlexibleProjectBuilderTest.java :
42 : private EMFWorkbenchContext emfContext;
The value of the local variable pm is not used
ModuleStructuralModelTest.java :
120 : ProjectComponents pm = moduleCore.getComponentModelRoot();
The value of the local variable clazz is not used
ModuleStructuralModelTest.java :
121 : Class clazz = moduleCore.getClass();
The value of the local variable name is not used
ModuleStructuralModelTest.java :
122 : String name = StructureEdit.getDeployedName(getWebModuleURI());
The value of the local variable er is not used
ModuleStructuralModelTest.java :
129 : IResource er = StructureEdit.getEclipseResource(wmr);
The value of the local variable b is not used
ModuleStructuralModelTest.java :
137 : boolean b = moduleCore.isLocalDependency(dependentModule);
The value of the local variable secondModel is not used
DeleteProjectTest.java :
101 : EJBJar secondModel = (EJBJar) provider.getModelObject();
The value of the local variable secondModel is not used
DeleteProjectTest.java :
140 : EJBJar secondModel = (EJBJar) provider.getModelObject();
The import org.eclipse.jst.jee.model.internal.EjbAnnotationFactory is never used
EjbAnnotationFactoryTest.java :
25 : import org.eclipse.jst.jee.model.internal.EjbAnnotationFactory;
The value of the local variable beans is not used
EjbAnnotationReaderTest.java :
178 : List<SessionBean> beans = getEJBJar().getEnterpriseBeans().getSessionBeans();
The value of the field GenerateDDTest.EJB_JAR_CONTENT is not used
GenerateDDTest.java :
36 : private static final String EJB_JAR_CONTENT = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
The value of the local variable operationStatus is not used
JEE5LegacyModelTest.java :
111 : IStatus operationStatus = importModel.getDefaultOperation().execute(new NullProgressMonitor(), null);
The method registerFactory(URI, ResourceSet, Resource.Factory) from the type JEE5LegacyModelTest is never used locally
JEE5LegacyModelTest.java :
183 : private void registerFactory(URI uri, ResourceSet resSet, Resource.Factory factory) {
The method getResourceSet() from the type JEE5LegacyModelTest is never used locally
JEE5LegacyModelTest.java :
187 : private ResourceSet getResourceSet() {
The method addWebProjectProperties(IDataModel, String, IProjectFacetVersion) from the type JEE5ModelTest is never used locally
JEE5ModelTest.java :
352 : private void addWebProjectProperties(IDataModel dataModel, String projName, IProjectFacetVersion web25){
The method registerFactory(URI, ResourceSet, Resource.Factory) from the type JEE5ModelTest is never used locally
JEE5ModelTest.java :
407 : private void registerFactory(URI uri, ResourceSet resSet, Resource.Factory factory) {
The method getResourceSet() from the type JEE5ModelTest is never used locally
JEE5ModelTest.java :
411 : private ResourceSet getResourceSet() {
The value of the local variable javaFacet is not used
JEE6ModelTest.java :
359 : IProjectFacet javaFacet = ProjectFacetsManager.getProjectFacet(IJ2EEFacetConstants.JAVA);
The method addWebProjectProperties(IDataModel, String, IProjectFacetVersion) from the type JEE6ModelTest is never used locally
JEE6ModelTest.java :
436 : private void addWebProjectProperties(IDataModel dataModel, String projName, IProjectFacetVersion web25){
The method registerFactory(URI, ResourceSet, Resource.Factory) from the type JEE6ModelTest is never used locally
JEE6ModelTest.java :
491 : private void registerFactory(URI uri, ResourceSet resSet, Resource.Factory factory) {
The method getResourceSet() from the type JEE6ModelTest is never used locally
JEE6ModelTest.java :
495 : private ResourceSet getResourceSet() {
The value of the local variable ear is not used
ModelProviderTest.java :
251 : org.eclipse.jst.j2ee.application.Application ear = (org.eclipse.jst.j2ee.application.Application) provider
The value of the local variable client is not used
ModelProviderTest.java :
524 : ApplicationClient client = (ApplicationClient) provider
The value of the local variable client is not used
ModelProviderTest.java :
553 : org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
The value of the local variable client is not used
ModelProviderTest.java :
584 : org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
The value of the local variable client is not used
ModelProviderTest.java :
620 : org.eclipse.jst.javaee.applicationclient.ApplicationClient client = (org.eclipse.jst.javaee.applicationclient.ApplicationClient) provider
Unnecessary @SuppressWarnings("restriction")
TestWebXmlModelAfterUpdate.java :
53 : @SuppressWarnings("restriction")
The value of the local variable fragment is not used
Web25MergedModelProviderTest.java :
86 : IPackageFragment fragment = root.createPackageFragment("sap", true, new NullProgressMonitor());
The method saveFileAndUpdate(IFile, String) from the type Web25MergedModelProviderTest is never used locally
Web25MergedModelProviderTest.java :
128 : private void saveFileAndUpdate(IFile webXml, String content) throws InterruptedException, Exception {
The value of the field Web3AnnotationReaderTest.BEAN_WITH_NAME is not used
Web3AnnotationReaderTest.java :
51 : private static String BEAN_WITH_NAME = "package com.sap;" + "import javax.ejb.Stateless;"
The value of the field WebAnnotationReaderTest.BEAN_WITH_NAME is not used
WebAnnotationReaderTest.java :
47 : private static String BEAN_WITH_NAME = "package com.sap;" + "import javax.ejb.Stateless;"
The value of the field EARProjectCreationOperationTest.CONNECTOR_PROJ_15 is not used
EARProjectCreationOperationTest.java :
116 : private static final String CONNECTOR_PROJ_15 = "myConnector_15";
The value of the local variable earProj is not used
EARProjectCreationOperationTest.java :
464 : IProject earProj = ResourcesPlugin.getWorkspace().getRoot().getProject("zEAR");
The value of the local variable initializer is not used
EARProjectCreationOperationTest.java :
562 : ClasspathContainerInitializer initializer= JavaCore.getClasspathContainerInitializer(JavaCore.USER_LIBRARY_CONTAINER_ID);
The value of the local variable resolvedPath is not used
EARProjectCreationOperationTest.java :
620 : IPath resolvedPath = JavaCore.getResolvedVariablePath(path);
The value of the local variable proj is not used
AddEJBeanOperationTest.java :
60 : IProject proj = ProjectUtilities.getProject(EJB_PROJECT_NAME);
The value of the local variable proj is not used
AddEJBeanOperationTest.java :
78 : IProject proj = ProjectUtilities.getProject(EJB_PROJECT_NAME);
The method addStateless(IDataModel) from the type EJBExportOperationTest is never used locally
EJBExportOperationTest.java :
85 : private void addStateless(IDataModel dm) throws Exception {
The static method runAndVerify(IDataModel) from the type OperationTestCase should be accessed in a static way
EJBGeneraUseTest.java :
57 : this.runAndVerify(model);
The static method runAndVerify(IDataModel) from the type OperationTestCase should be accessed in a static way
EJBGeneraUseTest.java :
79 : this.runAndVerify(model);
The static method runAndVerify(IDataModel) from the type OperationTestCase should be accessed in a static way
EJBGeneraUseTest.java :
97 : this.runAndVerify(model);
Null pointer access: The variable file can only be null at this location
EJBGeneraUseTest.java :
104 : Assert.assertTrue("The file " + this.FILE1 + " should exsist in the project.", file.exists());
Resource leak: 'buffB' is not closed at this location
ArchiveTestsUtil.java :
158 : return false;
Resource leak: 'buffA' is not closed at this location
ArchiveTestsUtil.java :
158 : return false;
Resource leak: 'buffA' is not closed at this location
ArchiveTestsUtil.java :
158 : return false;
Resource leak: 'buffA' is not closed at this location
ArchiveTestsUtil.java :
165 : return false;
The value of the local variable moduleList is not used
DefectVerificationTests.java :
253 : List moduleList = (List) model.getProperty(IEARComponentImportDataModelProperties.SELECTED_MODELS_LIST);
The value of the local variable javaProject is not used
DefectVerificationTests.java :
682 : IJavaProject javaProject = JavaCore.create(proj);
The method checkIfModelIsParsed(WebApp) from the type DefectVerificationTests is never used locally
DefectVerificationTests.java :
807 : private void checkIfModelIsParsed(WebApp deploymentDescriptor1) {
The value of the local variable project is not used
ThreadingTest.java :
169 : IProject project = StructureEdit.getContainingProject(writeStructureEdits[structureEditCount][projectCount].getComponent());
The value of the local variable nestedArchive is not used
EJBImportDataModelVerifier.java :
71 : for(IArchive nestedArchive : nestedArchives) {
The value of the local variable iProjVersion is not used
JEEExportDataModelVerifier.java :
59 : int iProjVersion = J2EEVersionUtil.convertVersionStringToInt(sProjVersion);
Resource leak: 'jarIn' is never closed
ModuleExportDataModelVerifier.java :
37 : JarInputStream jarIn = new JarInputStream(fIn);
The value of the local variable nestedArchive is not used
JCAImportDataModelVerifier.java :
71 : for(IArchive nestedArchive : nestedArchives) {
The value of the local variable nestedArchive is not used
UtilityImportDataModelVerifier.java :
82 : for(IArchive nestedArchive : nestedArchives) {
The value of the local variable nestedArchive is not used
WebImportDataModelVerifier.java :
79 : for(IArchive nestedArchive : nestedArchives) {
The value of the local variable nestedArchive is not used
AppClientImportDataModelVerifier.java :
73 : for(IArchive nestedArchive : nestedArchives) {
The value of the local variable proj is not used
AppClientProjectCreationDataModelVerifier.java :
76 : IProject proj = ProjectUtilities.getProject(projName);
The value of the local variable utilityList is not used
EARImportDataModelVerifier.java :
104 : List utilityList = (List)model.getProperty(IEARComponentImportDataModelProperties.UTILITY_LIST);
The value of the local variable ejbClientList is not used
EARImportDataModelVerifier.java :
105 : List ejbClientList = (List)model.getProperty(IEARComponentImportDataModelProperties.EJB_CLIENT_LIST);
The value of the local variable utilityModelsList is not used
EARImportDataModelVerifier.java :
106 : List utilityModelsList = (List)model.getProperty(IEARComponentImportDataModelProperties.UTILITY_MODELS_LIST);