Compiler Report

Compiler: Eclipse Compiler for Java(TM) Version: 0.A53, 3.6.0

Number of source files: 147 Number of classfiles: 203

Problems: 32 (Errors: 0 Warnings: 32 )

Source File: org/eclipse/wst/common/componentcore/ArtifactEdit.java
1. WARNING: DiscouragedReference

Discouraged access: The type EMFWorkbenchResourceHandler is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.jem.util_2.1.1.v201007291900.jar

ArtifactEdit.java :

31 : import org.eclipse.jem.internal.util.emf.workbench.nls.EMFWorkbenchResourceHandler;

2. WARNING: DiscouragedReference

Discouraged access: The type EMFWorkbenchResourceHandler is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.jem.util_2.1.1.v201007291900.jar

ArtifactEdit.java :

529 : return operationHandler.canContinue(EMFWorkbenchResourceHandler.getString("The_following_resources_ne_UI_"), getArtifactEditModel().getResourceURIs(true)); //$NON-NLS-1$ = "The following resources need to be saved but are currently shared, do you want to save now?"

3. WARNING: DiscouragedReference

Discouraged access: The method getString(String) from the type EMFWorkbenchResourceHandler is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.jem.util_2.1.1.v201007291900.jar

ArtifactEdit.java :

529 : return operationHandler.canContinue(EMFWorkbenchResourceHandler.getString("The_following_resources_ne_UI_"), getArtifactEditModel().getResourceURIs(true)); //$NON-NLS-1$ = "The following resources need to be saved but are currently shared, do you want to save now?"

Source File: org/eclipse/wst/common/componentcore/internal/ModuleStructuralModel.java
1. WARNING: DiscouragedReference

Discouraged access: The type Workspace is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

22 : import org.eclipse.core.internal.resources.Workspace;

2. WARNING: DeadCode

Dead code

ModuleStructuralModel.java :

160 : if(model == null){ return; }

3. WARNING: DiscouragedReference

Discouraged access: The type Workspace is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

288 : Workspace workspace = (Workspace)compFile.getWorkspace();

4. WARNING: DiscouragedReference

Discouraged access: The type Workspace is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

288 : Workspace workspace = (Workspace)compFile.getWorkspace();

5. WARNING: DiscouragedReference

Discouraged access: The method getElementTree() from the type Workspace is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

289 : if (workspace.getElementTree().isImmutable())

6. WARNING: DiscouragedReference

Discouraged access: The method isImmutable() from the type ElementTree is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

289 : if (workspace.getElementTree().isImmutable())

7. WARNING: DiscouragedReference

Discouraged access: The method newWorkingTree() from the type Workspace is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

291 : workspace.newWorkingTree();

8. WARNING: DiscouragedReference

Discouraged access: The method getLocalManager() from the type Resource is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

293 : ((org.eclipse.core.internal.resources.Resource)compFile).getLocalManager().refresh(compFile.getProject(), IResource.DEPTH_INFINITE, true, null);

9. WARNING: DiscouragedReference

Discouraged access: The method refresh(IResource, int, boolean, IProgressMonitor) from the type FileSystemResourceManager is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

293 : ((org.eclipse.core.internal.resources.Resource)compFile).getLocalManager().refresh(compFile.getProject(), IResource.DEPTH_INFINITE, true, null);

10. WARNING: DiscouragedReference

Discouraged access: The type Resource is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.core.resources_3.6.0.v20100526-0737.jar

ModuleStructuralModel.java :

293 : ((org.eclipse.core.internal.resources.Resource)compFile).getLocalManager().refresh(compFile.getProject(), IResource.DEPTH_INFINITE, true, null);

Source File: org/eclipse/wst/common/componentcore/internal/builder/IDependencyGraph.java
1. WARNING: UnusedImport

The import org.eclipse.core.resources.IResourceDeltaVisitor is never used

IDependencyGraph.java :

6 : import org.eclipse.core.resources.IResourceDeltaVisitor;

2. WARNING: UnusedImport

The import org.eclipse.wst.common.componentcore.resources.IVirtualComponent is never used

IDependencyGraph.java :

7 : import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;

Source File: org/eclipse/wst/common/componentcore/internal/flat/FlatVirtualComponent.java
1. WARNING: LocalVariableIsNeverUsed

The local variable consumableMembers is never read

FlatVirtualComponent.java :

189 : List consumableMembers = new ArrayList();

2. WARNING: LocalVariableIsNeverUsed

The local variable virtualComp is never read

FlatVirtualComponent.java :

233 : IVirtualComponent virtualComp = reference.getReferencedComponent();

Source File: org/eclipse/wst/common/componentcore/internal/impl/PlatformURLModuleConnection.java
1. WARNING: DiscouragedReference

Discouraged access: The type PlatformURLConnection is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar

PlatformURLModuleConnection.java :

22 : import org.eclipse.core.internal.boot.PlatformURLConnection;

2. WARNING: DiscouragedReference

Discouraged access: The type PlatformURLHandler is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar

PlatformURLModuleConnection.java :

23 : import org.eclipse.core.internal.boot.PlatformURLHandler;

3. WARNING: DiscouragedReference

Discouraged access: The type PlatformURLConnection is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar

PlatformURLModuleConnection.java :

41 : public class PlatformURLModuleConnection extends PlatformURLConnection {

4. WARNING: DiscouragedReference

Discouraged access: The type PlatformURLHandler is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar

PlatformURLModuleConnection.java :

44 : public static final String MODULE_PROTOCOL = MODULE + PlatformURLHandler.PROTOCOL_SEPARATOR;

5. WARNING: DiscouragedReference

Discouraged access: The field PROTOCOL_SEPARATOR from the type PlatformURLHandler is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar

PlatformURLModuleConnection.java :

44 : public static final String MODULE_PROTOCOL = MODULE + PlatformURLHandler.PROTOCOL_SEPARATOR;

6. WARNING: DiscouragedReference

Discouraged access: The constructor PlatformURLConnection(URL) is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar

PlatformURLModuleConnection.java :

53 : super(aURL);

7. WARNING: NullLocalVariableReference

Null pointer access: The variable resolvedPath can only be null at this location

PlatformURLModuleConnection.java :

93 : int count = resolvedPath.segmentCount();

8. WARNING: DiscouragedReference

Discouraged access: The type PlatformURLHandler is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar

PlatformURLModuleConnection.java :

113 : PlatformURLHandler.register(PlatformURLModuleConnection.MODULE, PlatformURLModuleConnection.class);

9. WARNING: DiscouragedReference

Discouraged access: The method register(String, Class) from the type PlatformURLHandler is not accessible due to restriction on classpath entry /opt/public/webtools/projects/patches-R3.2.1-P/eclipse/plugins/org.eclipse.equinox.common_3.6.0.v20100503.jar

PlatformURLModuleConnection.java :

113 : PlatformURLHandler.register(PlatformURLModuleConnection.MODULE, PlatformURLModuleConnection.class);

Source File: org/eclipse/wst/common/componentcore/internal/resources/VirtualArchiveComponent.java
1. WARNING: LocalVariableIsNeverUsed

The local variable x is never read

VirtualArchiveComponent.java :

91 : int x = BINARY;

Source File: org/eclipse/wst/common/componentcore/internal/resources/VirtualComponent.java
1. WARNING: LocalVariableIsNeverUsed

The local variable factory is never read

VirtualComponent.java :

469 : ComponentcoreFactory factory = ComponentcorePackage.eINSTANCE.getComponentcoreFactory();

2. WARNING: LocalVariableIsNeverUsed

The local variable factory is never read

VirtualComponent.java :

496 : ComponentcoreFactory factory = ComponentcorePackage.eINSTANCE.getComponentcoreFactory();

Source File: org/eclipse/wst/common/componentcore/internal/resources/VirtualContainer.java
1. WARNING: DeadCode

Dead code

VirtualContainer.java :

223 : return new IVirtualResource[0];

Source File: org/eclipse/wst/common/componentcore/internal/resources/VirtualResource.java
1. WARNING: DeadCode

Dead code

VirtualResource.java :

264 : for (int i = 0; i < resources.length; i++) {

Source File: org/eclipse/wst/common/componentcore/internal/util/ComponentImplManager.java
1. WARNING: LocalVariableIsNeverUsed

The local variable projectFacets is never read

ComponentImplManager.java :

149 : Set<IProjectFacetVersion> projectFacets = facetedProject.getProjectFacets();