Compiler Report

Compiler: Eclipse Java Compiler Version: 0.868, 3.4.0 release candidate-2

Number of source files: 110 Number of classfiles: 125

Problems: 57 (Errors: 0 Warnings: 57 )

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/AddEnterpriseBeanOperation.java
1. WARNING: UnusedImport

The import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation is never used

AddEnterpriseBeanOperation.java :

14 : import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation;

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/AddMessageDrivenBeanOperation.java
1. WARNING: UnusedImport

The import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation is never used

AddMessageDrivenBeanOperation.java :

14 : import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation;

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/AddSessionBeanOperation.java
1. WARNING: UnusedImport

The import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation is never used

AddSessionBeanOperation.java :

14 : import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation;

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/INewSessionBeanClassDataModelProperties.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties is never used

INewSessionBeanClassDataModelProperties.java :

13 : import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties;

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/MessageDrivenBeanTemplate.java
1. WARNING: LocalVariableIsNeverUsed

The local variable unimplementedMethods is never read

MessageDrivenBeanTemplate.java :

262 : Collection<Method> unimplementedMethods = model.getUnimplementedMethods();

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/NewEnterpriseBeanClassDataModelProvider.java
1. WARNING: UnusedImport

The import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider is never used

NewEnterpriseBeanClassDataModelProvider.java :

27 : import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/NewEnterpriseBeanClassOperation.java
1. WARNING: UnusedImport

The import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation is never used

NewEnterpriseBeanClassOperation.java :

19 : import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation;

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/NewMessageDrivenBeanClassDataModelProvider.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.internal.common.operations.NewJavaClassDataModelProvider is never used

NewMessageDrivenBeanClassDataModelProvider.java :

24 : import org.eclipse.jst.j2ee.internal.common.operations.NewJavaClassDataModelProvider;

2. WARNING: UnusedImport

The import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider is never used

NewMessageDrivenBeanClassDataModelProvider.java :

29 : import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;

3. WARNING: LocalVariableIsNeverUsed

The local variable interfaces is never read

NewMessageDrivenBeanClassDataModelProvider.java :

146 : List<String> interfaces = (List<String>) getProperty(INTERFACES);

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/NewMessageDrivenBeanClassOperation.java
1. WARNING: UnusedImport

The import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation is never used

NewMessageDrivenBeanClassOperation.java :

18 : import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation;

2. WARNING: LocalVariableIsNeverUsed

The local variable aFile is never read

NewMessageDrivenBeanClassOperation.java :

100 : IFile aFile = createJavaFile(monitor, fragment, source, javaFileName);

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/NewSessionBeanClassDataModelProvider.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.internal.common.operations.NewJavaClassDataModelProvider is never used

NewSessionBeanClassDataModelProvider.java :

49 : import org.eclipse.jst.j2ee.internal.common.operations.NewJavaClassDataModelProvider;

2. WARNING: UnusedImport

The import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider is never used

NewSessionBeanClassDataModelProvider.java :

59 : import org.eclipse.wst.common.frameworks.datamodel.IDataModelProvider;

3. WARNING: LocalVariableIsNeverUsed

The local variable status is never read

NewSessionBeanClassDataModelProvider.java :

305 : IStatus status = null;

Source File: org/eclipse/jst/j2ee/ejb/internal/operations/NewSessionBeanClassOperation.java
1. WARNING: UnusedImport

The import java.lang.reflect.InvocationTargetException is never used

NewSessionBeanClassOperation.java :

19 : import java.lang.reflect.InvocationTargetException;

2. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties is never used

NewSessionBeanClassOperation.java :

45 : import org.eclipse.jst.j2ee.internal.common.operations.INewJavaClassDataModelProperties;

3. WARNING: UnusedImport

The import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation is never used

NewSessionBeanClassOperation.java :

48 : import org.eclipse.wst.common.componentcore.internal.operation.ArtifactEditProviderOperation;

4. WARNING: LocalVariableIsNeverUsed

The local variable project is never read

NewSessionBeanClassOperation.java :

171 : IProject project = getTargetProject();

5. WARNING: LocalVariableIsNeverUsed

The local variable aFile is never read

NewSessionBeanClassOperation.java :

185 : IFile aFile = createJavaFile(monitor, fragment, source, javaFileName);

Source File: org/eclipse/jst/j2ee/ejb/internal/plugin/EjbPlugin.java
1. WARNING: DiscouragedReference

Discouraged access: The type PlatformURLConnection is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/eclipse/plugins/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar

EjbPlugin.java :

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

2. WARNING: DiscouragedReference

Discouraged access: The method getURLAsLocal() from the type PlatformURLConnection is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/eclipse/plugins/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar

EjbPlugin.java :

79 : String installLocation = ((PlatformURLConnection) url.openConnection()).getURLAsLocal().getFile();

3. WARNING: DiscouragedReference

Discouraged access: The type PlatformURLConnection is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/eclipse/plugins/org.eclipse.equinox.common_3.4.0.v20080421-2006.jar

EjbPlugin.java :

79 : String installLocation = ((PlatformURLConnection) url.openConnection()).getURLAsLocal().getFile();

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/AssemblyDescriptorItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.AddCommand is never used

AssemblyDescriptorItemProvider.java :

24 : import org.eclipse.emf.edit.command.AddCommand;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.RemoveCommand is never used

AssemblyDescriptorItemProvider.java :

25 : import org.eclipse.emf.edit.command.RemoveCommand;

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/EJBRelationItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.AddCommand is never used

EJBRelationItemProvider.java :

23 : import org.eclipse.emf.edit.command.AddCommand;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.RemoveCommand is never used

EJBRelationItemProvider.java :

24 : import org.eclipse.emf.edit.command.RemoveCommand;

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/EJBRelationshipRoleItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.AddCommand is never used

EJBRelationshipRoleItemProvider.java :

25 : import org.eclipse.emf.edit.command.AddCommand;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.RemoveCommand is never used

EJBRelationshipRoleItemProvider.java :

26 : import org.eclipse.emf.edit.command.RemoveCommand;

3. WARNING: UnusedImport

The import org.eclipse.emf.edit.provider.ItemProviderAdapter is never used

EJBRelationshipRoleItemProvider.java :

35 : import org.eclipse.emf.edit.provider.ItemProviderAdapter;

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/ExcludeListItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.AddCommand is never used

ExcludeListItemProvider.java :

21 : import org.eclipse.emf.edit.command.AddCommand;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.RemoveCommand is never used

ExcludeListItemProvider.java :

22 : import org.eclipse.emf.edit.command.RemoveCommand;

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/MessageDrivenItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.AddCommand is never used

MessageDrivenItemProvider.java :

23 : import org.eclipse.emf.edit.command.AddCommand;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.RemoveCommand is never used

MessageDrivenItemProvider.java :

24 : import org.eclipse.emf.edit.command.RemoveCommand;

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/MethodElementItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.common.notify.Adapter is never used

MethodElementItemProvider.java :

18 : import org.eclipse.emf.common.notify.Adapter;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.provider.IDisposable is never used

MethodElementItemProvider.java :

27 : import org.eclipse.emf.edit.provider.IDisposable;

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/MethodPermissionItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.AddCommand is never used

MethodPermissionItemProvider.java :

23 : import org.eclipse.emf.edit.command.AddCommand;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.RemoveCommand is never used

MethodPermissionItemProvider.java :

24 : import org.eclipse.emf.edit.command.RemoveCommand;

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/MethodTransactionItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.AddCommand is never used

MethodTransactionItemProvider.java :

24 : import org.eclipse.emf.edit.command.AddCommand;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.RemoveCommand is never used

MethodTransactionItemProvider.java :

25 : import org.eclipse.emf.edit.command.RemoveCommand;

Source File: org/eclipse/jst/j2ee/internal/ejb/provider/RelationshipsItemProvider.java
1. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.AddCommand is never used

RelationshipsItemProvider.java :

23 : import org.eclipse.emf.edit.command.AddCommand;

2. WARNING: UnusedImport

The import org.eclipse.emf.edit.command.RemoveCommand is never used

RelationshipsItemProvider.java :

24 : import org.eclipse.emf.edit.command.RemoveCommand;

Source File: org/eclipse/jst/j2ee/internal/ejb/archiveoperations/EJBClientJARRemovalOperation.java
1. WARNING: DiscouragedReference

Discouraged access: The type ResourceException is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/eclipse/plugins/org.eclipse.core.resources_3.4.2.R34x_v20090126.jar

EJBClientJARRemovalOperation.java :

20 : import org.eclipse.core.internal.resources.ResourceException;

2. WARNING: MethodVarargsArgumentNeedCast

The argument of type String[] should explicitly be cast to Object[] for the invocation of the varargs method format(String, Object...) from type MessageFormat. It could alternatively be cast to Object for a varargs invocation

EJBClientJARRemovalOperation.java :

490 : String message = MessageFormat.format(ClientJARCreationConstants.SHOULD_OVERWRITE, new String[]{filePath.toString(), newPath.toString()});

3. WARNING: DiscouragedReference

Discouraged access: The type ResourceException is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/eclipse/plugins/org.eclipse.core.resources_3.4.2.R34x_v20090126.jar

EJBClientJARRemovalOperation.java :

553 : }catch(ResourceException e){

4. WARNING: MethodVarargsArgumentNeedCast

The argument of type String[] should explicitly be cast to Object[] for the invocation of the varargs method format(String, Object...) from type MessageFormat. It could alternatively be cast to Object for a varargs invocation

EJBClientJARRemovalOperation.java :

573 : String message = MessageFormat.format(ClientJARCreationConstants.FILES_OUT_OF_SYNC, new String[]{project.getName()});

Source File: org/eclipse/jst/j2ee/internal/ejb/archiveoperations/EJBClientJarCreationHelper.java
1. WARNING: DiscouragedReference

Discouraged access: The type JDOMSearchHelper is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBClientJarCreationHelper.java :

39 : import org.eclipse.jem.internal.adapters.jdom.JDOMSearchHelper;

2. WARNING: DiscouragedReference

Discouraged access: The type JDOMSearchHelper is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBClientJarCreationHelper.java :

172 : IType type = JDOMSearchHelper.findType(javaClass.getJavaPackage().getName(), javaClass.getSimpleName(), jProj);

3. WARNING: DiscouragedReference

Discouraged access: The method findType(String, String, IJavaProject) from the type JDOMSearchHelper is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBClientJarCreationHelper.java :

172 : IType type = JDOMSearchHelper.findType(javaClass.getJavaPackage().getName(), javaClass.getSimpleName(), jProj);

Source File: org/eclipse/jst/j2ee/internal/ejb/workbench/validation/EJBHelper.java
1. WARNING: DiscouragedReference

Discouraged access: The type JDOMSearchHelper is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBHelper.java :

37 : import org.eclipse.jem.internal.adapters.jdom.JDOMSearchHelper;

2. WARNING: DiscouragedReference

Discouraged access: The type JavaEMFNature is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBHelper.java :

38 : import org.eclipse.jem.internal.plugin.JavaEMFNature;

3. WARNING: DiscouragedReference

Discouraged access: The type JDOMSearchHelper is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBHelper.java :

685 : return JDOMSearchHelper.findType(clazz.getJavaPackage().getName(), clazz.getName(), javaProj);

4. WARNING: DiscouragedReference

Discouraged access: The method findType(String, String, IJavaProject) from the type JDOMSearchHelper is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBHelper.java :

685 : return JDOMSearchHelper.findType(clazz.getJavaPackage().getName(), clazz.getName(), javaProj);

5. WARNING: DiscouragedReference

Discouraged access: The type JavaEMFNature is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBHelper.java :

716 : JavaEMFNature nature = JavaEMFNature.getRuntime(getProject());

6. WARNING: DiscouragedReference

Discouraged access: The type JavaEMFNature is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBHelper.java :

716 : JavaEMFNature nature = JavaEMFNature.getRuntime(getProject());

7. WARNING: DiscouragedReference

Discouraged access: The method getRuntime(IProject) from the type JavaEMFNature is not accessible due to restriction on classpath entry /shared/webtools/projects/wtp-R3.0-M/workdir/plugins/org.eclipse.jem.workbench/@dot

EJBHelper.java :

716 : JavaEMFNature nature = JavaEMFNature.getRuntime(getProject());

Source File: org/eclipse/jst/j2ee/internal/ejb/workbench/validation/ResourceHandler.java
1. WARNING: MethodVarargsArgumentNeedCast

The argument of type String[] should explicitly be cast to Object[] for the invocation of the varargs method format(String, Object...) from type MessageFormat. It could alternatively be cast to Object for a varargs invocation

ResourceHandler.java :

79 : res = java.text.MessageFormat.format(getExternalizedMessage(key), parms);