Compiler Report

Compiler: Eclipse Java Compiler Version: 0.959, 3.5.0 rc1

Number of source files: 56 Number of classfiles: 63

Problems: 53 (Errors: 0 Warnings: 53 )

Source File: org/eclipse/jst/jee/ui/internal/deployables/EJBDeployableArtifactAdapterUtil.java
1. WARNING: LocalVariableIsNeverUsed

The local variable comp is never read

EJBDeployableArtifactAdapterUtil.java :

209 : IVirtualComponent comp = (IVirtualComponent)file.getAdapter(IVirtualComponent.class);

Source File: org/eclipse/jst/jee/ui/internal/deployables/WebDeployableArtifactUtil.java
1. WARNING: LocalVariableIsNeverUsed

The local variable exists is never read

WebDeployableArtifactUtil.java :

320 : boolean exists = false;

2. WARNING: LocalVariableIsNeverUsed

The local variable exists is never read

WebDeployableArtifactUtil.java :

359 : boolean exists = false;

Source File: org/eclipse/jst/jee/ui/internal/navigator/Ear5ContentProvider.java
1. WARNING: LocalVariableIsNeverUsed

The local variable libDir is never read

Ear5ContentProvider.java :

133 : String libDir = EAR_DEFAULT_LIB;

2. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

Ear5ContentProvider.java :

156 : JEEUIPlugin.getDefault().logError(msg, e);

3. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

Ear5ContentProvider.java :

175 : JEEUIPlugin.getDefault().logError(msg, e);

Source File: org/eclipse/jst/jee/ui/internal/navigator/Ear5LabelProvider.java
1. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

Ear5LabelProvider.java :

55 : JEEUIPlugin.getDefault().logError(msg, e);

Source File: org/eclipse/jst/jee/ui/internal/navigator/Ejb3ContentProvider.java
1. WARNING: UnusedPrivateMethod

The method addSessionJNDIRefInfo(EntityBean, List) from the type Ejb3ContentProvider is never used locally

Ejb3ContentProvider.java :

138 : private void addSessionJNDIRefInfo(EntityBean eb, List children) {

Source File: org/eclipse/jst/jee/ui/internal/navigator/Ejb3LabelProvider.java
1. WARNING: UnusedPrivateField

The field Ejb3LabelProvider.delegateLabelProvider is never read locally

Ejb3LabelProvider.java :

48 : private AdapterFactoryLabelProvider delegateLabelProvider;

Source File: org/eclipse/jst/jee/ui/internal/navigator/JEEActionProvider.java
1. WARNING: DiscouragedReference

Discouraged access: The type WorkbenchNavigatorMessages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.ui.navigator.resources_3.4.0.I20090525-2000.jar

JEEActionProvider.java :

42 : import org.eclipse.ui.internal.navigator.resources.plugin.WorkbenchNavigatorMessages;

2. WARNING: DiscouragedReference

Discouraged access: The type WorkbenchNavigatorMessages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.ui.navigator.resources_3.4.0.I20090525-2000.jar

JEEActionProvider.java :

196 : IMenuManager submenu= new MenuManager(WorkbenchNavigatorMessages.OpenActionProvider_OpenWithMenu_label,

3. WARNING: DiscouragedReference

Discouraged access: The field OpenActionProvider_OpenWithMenu_label from the type WorkbenchNavigatorMessages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.ui.navigator.resources_3.4.0.I20090525-2000.jar

JEEActionProvider.java :

196 : IMenuManager submenu= new MenuManager(WorkbenchNavigatorMessages.OpenActionProvider_OpenWithMenu_label,

4. WARNING: LocalVariableIsNeverUsed

The local variable component is never read

JEEActionProvider.java :

215 : IVirtualComponent component = ((ComponentArchiveOptions) options)

Source File: org/eclipse/jst/jee/ui/internal/navigator/OpenJEEResourceAction.java
1. WARNING: DiscouragedReference

Discouraged access: The type EditorUtility is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

OpenJEEResourceAction.java :

26 : import org.eclipse.jdt.internal.ui.javaeditor.EditorUtility;

2. WARNING: DiscouragedReference

Discouraged access: The type EditorUtility is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

OpenJEEResourceAction.java :

250 : EditorUtility.openInEditor(cu);

3. WARNING: DiscouragedReference

Discouraged access: The method openInEditor(Object) from the type EditorUtility is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

OpenJEEResourceAction.java :

250 : EditorUtility.openInEditor(cu);

Source File: org/eclipse/jst/jee/ui/internal/navigator/appclient/GroupAppClientProvider.java
1. WARNING: UnusedPrivateMethod

The method getModel() from the type GroupAppClientProvider is never used locally

GroupAppClientProvider.java :

56 : private ApplicationClient getModel() {

Source File: org/eclipse/jst/jee/ui/internal/navigator/dnd/AddProjectToEARDropAssistant.java
1. WARNING: DiscouragedReference

Discouraged access: The type JarPackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

34 : import org.eclipse.jdt.internal.core.JarPackageFragmentRoot;

2. WARNING: DiscouragedReference

Discouraged access: The type JarPackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

154 : if (sourceObject instanceof JarPackageFragmentRoot) {

3. WARNING: DiscouragedReference

Discouraged access: The type JarPackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

155 : JarPackageFragmentRoot jarPackageFragment = (JarPackageFragmentRoot) sourceObject;

4. WARNING: DiscouragedReference

Discouraged access: The type JarPackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

155 : JarPackageFragmentRoot jarPackageFragment = (JarPackageFragmentRoot) sourceObject;

5. WARNING: DiscouragedReference

Discouraged access: The method getPath() from the type PackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

158 : IVirtualComponent archive = ComponentCore.createArchiveComponent(earComponent.getProject(), type + jarPackageFragment.getPath().toString());

6. WARNING: DiscouragedReference

Discouraged access: The type JarPackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

244 : if (next instanceof JarPackageFragmentRoot) {

7. WARNING: DiscouragedReference

Discouraged access: The type JarPackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

245 : JarPackageFragmentRoot jar = (JarPackageFragmentRoot) next;

8. WARNING: DiscouragedReference

Discouraged access: The type JarPackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

245 : JarPackageFragmentRoot jar = (JarPackageFragmentRoot) next;

9. WARNING: DiscouragedReference

Discouraged access: The method getElementName() from the type JarPackageFragmentRoot is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.core_3.5.0.v_963.jar

AddProjectToEARDropAssistant.java :

247 : if (reference.getArchiveName().equals(jar.getElementName())) {

10. WARNING: LocalVariableIsNeverUsed

The local variable modelProvider is never read

AddProjectToEARDropAssistant.java :

317 : IModelProvider modelProvider = ModelProviderManager.getModelProvider(earProject);

11. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

AddProjectToEARDropAssistant.java :

326 : JEEUIPlugin.getDefault().logError("Could not acquire model elements for project \"" + earProject.getName() + "\".", null); //$NON-NLS-1$ //$NON-NLS-2$

12. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

AddProjectToEARDropAssistant.java :

330 : JEEUIPlugin.getDefault().logError(msg, e1);

13. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

AddProjectToEARDropAssistant.java :

346 : JEEUIPlugin.getDefault().logError(msg, e1);

14. WARNING: LocalVariableIsNeverUsed

The local variable k is never read

AddProjectToEARDropAssistant.java :

490 : int k = 0;

15. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

AddProjectToEARDropAssistant.java :

513 : JEEUIPlugin.getDefault().logError(msg, e);

16. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

AddProjectToEARDropAssistant.java :

530 : JEEUIPlugin.getDefault().logError(msg, e);

17. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

AddProjectToEARDropAssistant.java :

556 : JEEUIPlugin.getDefault().logError(msg, e);

18. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

AddProjectToEARDropAssistant.java :

584 : JEEUIPlugin.getDefault().logError(msg, e);

19. WARNING: LocalVariableIsNeverUsed

The local variable k is never read

AddProjectToEARDropAssistant.java :

591 : int k = 0;

Source File: org/eclipse/jst/jee/ui/internal/navigator/ear/GroupEARProvider.java
1. WARNING: LocalVariableIsNeverUsed

The local variable projectComponent is never read

GroupEARProvider.java :

75 : IVirtualComponent projectComponent = ComponentCore.createComponent(project);

2. WARNING: NonStaticAccessToStaticMethod

The static method logError(String, Exception) from the type JEEUIPlugin should be accessed in a static way

GroupEARProvider.java :

98 : JEEUIPlugin.getDefault().logError(msg, e);

Source File: org/eclipse/jst/jee/ui/internal/navigator/ear/ShowDepPropPageAction.java
1. WARNING: DiscouragedReference

Discouraged access: The type PropertyDialog is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.ui.workbench_3.5.0.I20090603-2000.jar

ShowDepPropPageAction.java :

21 : import org.eclipse.ui.internal.dialogs.PropertyDialog;

2. WARNING: DiscouragedReference

Discouraged access: The type PropertyDialog is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.ui.workbench_3.5.0.I20090603-2000.jar

ShowDepPropPageAction.java :

42 : PreferenceDialog dialog = PropertyDialog.createDialogOn(PlatformUI.getWorkbench().getActiveWorkbenchWindow().

3. WARNING: DiscouragedReference

Discouraged access: The method createDialogOn(Shell, String, Object) from the type PropertyDialog is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.ui.workbench_3.5.0.I20090603-2000.jar

ShowDepPropPageAction.java :

42 : PreferenceDialog dialog = PropertyDialog.createDialogOn(PlatformUI.getWorkbench().getActiveWorkbenchWindow(). getShell(), "org.eclipse.jst.j2ee.internal.J2EEDependenciesPage", earProject); //$NON-NLS-1$

Source File: org/eclipse/jst/jee/ui/internal/navigator/ejb/BeanInterfaceNode.java
1. WARNING: DiscouragedReference

Discouraged access: The type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanInterfaceNode.java :

17 : import org.eclipse.jdt.internal.ui.JavaPluginImages;

2. WARNING: DiscouragedReference

Discouraged access: The type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanInterfaceNode.java :

64 : return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);

3. WARNING: DiscouragedReference

Discouraged access: The method get(String) from the type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanInterfaceNode.java :

64 : return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);

4. WARNING: DiscouragedReference

Discouraged access: The type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanInterfaceNode.java :

64 : return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);

5. WARNING: DiscouragedReference

Discouraged access: The field IMG_OBJS_CUNIT from the type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanInterfaceNode.java :

64 : return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);

Source File: org/eclipse/jst/jee/ui/internal/navigator/ejb/BeanNode.java
1. WARNING: DiscouragedReference

Discouraged access: The type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanNode.java :

16 : import org.eclipse.jdt.internal.ui.JavaPluginImages;

2. WARNING: UnusedPrivateField

The field BeanNode.BEAN_OVR is never read locally

BeanNode.java :

35 : private static ImageDescriptor BEAN_OVR;

3. WARNING: UnusedPrivateField

The field BeanNode.WEB_SERVICE_OVR is never read locally

BeanNode.java :

36 : private static ImageDescriptor WEB_SERVICE_OVR;

4. WARNING: DiscouragedReference

Discouraged access: The type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanNode.java :

75 : return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);

5. WARNING: DiscouragedReference

Discouraged access: The method get(String) from the type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanNode.java :

75 : return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);

6. WARNING: DiscouragedReference

Discouraged access: The type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanNode.java :

75 : return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);

7. WARNING: DiscouragedReference

Discouraged access: The field IMG_OBJS_CUNIT from the type JavaPluginImages is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.1-S/eclipse/plugins/org.eclipse.jdt.ui_3.5.0.v20090604.jar

BeanNode.java :

75 : return JavaPluginImages.get(JavaPluginImages.IMG_OBJS_CUNIT);