Compiler Report

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

Number of source files: 1112 Number of classfiles: 1257

Problems: 44 (Errors: 0 Warnings: 44 )

Source File: org/eclipse/jst/j2ee/common/internal/impl/XMLResourceImpl.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.internal.J2EEVersionConstants is never used

XMLResourceImpl.java :

22 : import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;

2. WARNING: UnusedImport

The import org.eclipse.wst.common.internal.emf.resource.TranslatorResource is never used

XMLResourceImpl.java :

27 : import org.eclipse.wst.common.internal.emf.resource.TranslatorResource;

Source File: org/eclipse/jst/j2ee/internal/J2EEInit.java
1. WARNING: DiscouragedReference

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

J2EEInit.java :

98 : org.eclipse.jem.internal.java.init.JavaInit.init(shouldPreRegisterPackages);

2. WARNING: DiscouragedReference

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

J2EEInit.java :

98 : org.eclipse.jem.internal.java.init.JavaInit.init(shouldPreRegisterPackages);

Source File: org/eclipse/jst/j2ee/internal/J2EEStatus.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

J2EEStatus.java :

69 : return MessageFormat.format(aPattern, new String[]{arg1});

Source File: org/eclipse/jst/j2ee/internal/xml/J2EEXmlDtDEntityResolver.java
1. WARNING: UnusedImport

The import java.io.FileNotFoundException is never used

J2EEXmlDtDEntityResolver.java :

15 : import java.io.FileNotFoundException;

2. WARNING: UnusedImport

The import org.xml.sax.SAXException is never used

J2EEXmlDtDEntityResolver.java :

22 : import org.xml.sax.SAXException;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/Archive.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy is never used

Archive.java :

33 : import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/ModuleRef.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy is never used

ModuleRef.java :

25 : import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/ValidateXmlCommand.java
1. WARNING: UnusedImport

The import org.eclipse.emf.common.command.Command is never used

ValidateXmlCommand.java :

22 : import org.eclipse.emf.common.command.Command;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/WARFile.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException is never used

WARFile.java :

18 : import org.eclipse.jst.j2ee.commonarchivecore.internal.exception.DuplicateObjectException;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/exception/UncontainedModuleFileException.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile is never used

UncontainedModuleFileException.java :

13 : import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/helpers/SaveFilter.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy is never used

SaveFilter.java :

16 : import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.SaveStrategy;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ArchiveImpl.java
1. WARNING: DiscouragedReference

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

ArchiveImpl.java :

33 : import org.eclipse.jem.internal.java.adapters.ReadAdaptor;

2. WARNING: DiscouragedReference

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

ArchiveImpl.java :

34 : import org.eclipse.jem.internal.java.adapters.jdk.JavaJDKAdapterFactory;

3. WARNING: DiscouragedReference

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

ArchiveImpl.java :

678 : protected JavaJDKAdapterFactory getJavaAdapterFactory() {

4. WARNING: DiscouragedReference

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

ArchiveImpl.java :

679 : return (JavaJDKAdapterFactory) EcoreUtil.getAdapterFactory(getLoadStrategy().getResourceSet().getAdapterFactories(), ReadAdaptor.TYPE_KEY);

5. WARNING: DiscouragedReference

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

ArchiveImpl.java :

679 : return (JavaJDKAdapterFactory) EcoreUtil.getAdapterFactory(getLoadStrategy().getResourceSet().getAdapterFactories(), ReadAdaptor.TYPE_KEY);

6. WARNING: DiscouragedReference

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

ArchiveImpl.java :

679 : return (JavaJDKAdapterFactory) EcoreUtil.getAdapterFactory(getLoadStrategy().getResourceSet().getAdapterFactories(), ReadAdaptor.TYPE_KEY);

7. WARNING: DiscouragedReference

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

ArchiveImpl.java :

853 : JavaJDKAdapterFactory factory = getJavaAdapterFactory();

8. WARNING: DiscouragedReference

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

ArchiveImpl.java :

854 : factory.setContextClassLoader(cl);

9. WARNING: DiscouragedReference

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

ArchiveImpl.java :

855 : factory.flushAll();

10. WARNING: DiscouragedReference

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

ArchiveImpl.java :

975 : getJavaAdapterFactory().setContextClassLoader(null);

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/impl/ModuleRefImpl.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy is never used

ModuleRefImpl.java :

43 : import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.LoadStrategy;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/strategy/LoadStrategyImpl.java
1. WARNING: DiscouragedReference

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

LoadStrategyImpl.java :

33 : import org.eclipse.jem.internal.java.adapters.jdk.JavaJDKAdapterFactory;

2. WARNING: DiscouragedReference

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

LoadStrategyImpl.java :

374 : rs.getAdapterFactories().add(new JavaJDKAdapterFactory());

3. WARNING: DiscouragedReference

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

LoadStrategyImpl.java :

374 : rs.getAdapterFactories().add(new JavaJDKAdapterFactory());

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/util/ArchiveUtil.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ZipFileLoadStrategyImpl is never used

ArchiveUtil.java :

47 : import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ZipFileLoadStrategyImpl;

Source File: org/eclipse/jst/j2ee/commonarchivecore/internal/util/J2EEFileUtil.java
1. WARNING: UnusedImport

The import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ZipFileLoadStrategyImpl is never used

J2EEFileUtil.java :

30 : import org.eclipse.jst.j2ee.commonarchivecore.internal.strategy.ZipFileLoadStrategyImpl;

Source File: org/eclipse/jst/j2ee/model/internal/validation/AComponentVRule.java
1. WARNING: DiscouragedReference

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

AComponentVRule.java :

17 : import org.eclipse.jem.internal.java.adapters.JavaReflectionAdaptor;

2. WARNING: DiscouragedReference

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

AComponentVRule.java :

99 : JavaReflectionAdaptor adapter = (JavaReflectionAdaptor) JavaReflectionAdaptor.retrieveAdaptorFrom(bean.getEjbClass());

3. WARNING: DiscouragedReference

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

AComponentVRule.java :

99 : JavaReflectionAdaptor adapter = (JavaReflectionAdaptor) JavaReflectionAdaptor.retrieveAdaptorFrom(bean.getEjbClass());

4. WARNING: DiscouragedReference

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

AComponentVRule.java :

99 : JavaReflectionAdaptor adapter = (JavaReflectionAdaptor) JavaReflectionAdaptor.retrieveAdaptorFrom(bean.getEjbClass());

5. WARNING: DiscouragedReference

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

AComponentVRule.java :

99 : JavaReflectionAdaptor adapter = (JavaReflectionAdaptor) JavaReflectionAdaptor.retrieveAdaptorFrom(bean.getEjbClass());

6. WARNING: DiscouragedReference

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

AComponentVRule.java :

100 : adapter.flushReflectedValuesIfNecessary(true);

Source File: org/eclipse/jst/j2ee/model/internal/validation/AEntityBeanClassVRule.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

AEntityBeanClassVRule.java :

38 : String missingMethod = MessageFormat.format(missingMethodTemplate, new String[]{matchingMethodName, ValidationRuleUtility.getParmsAsString(method)});

Source File: org/eclipse/jst/j2ee/model/internal/validation/EarValidator.java
1. WARNING: NullLocalVariableReference

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

EarValidator.java :

466 : if( ejbCollection != null || !ejbCollection.isEmpty() ) {

2. WARNING: NullLocalVariableReference

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

EarValidator.java :

762 : if( ejbCollection != null || !ejbCollection.isEmpty() ) {

3. WARNING: NullLocalVariableReference

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

EarValidator.java :

923 : if( ejbCollection != null || !ejbCollection.isEmpty() ) {

Source File: org/eclipse/jst/j2ee/model/internal/validation/RoleHelper.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

RoleHelper.java :

103 : return java.text.MessageFormat.format(pattern, replacements);

Source File: org/eclipse/jst/j2ee/model/internal/validation/ValidationRuleUtility.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

ValidationRuleUtility.java :

731 : String result = MessageFormat.format(text, new String[]{javaClassName, String.valueOf(resourceSet)});

Source File: org/eclipse/jst/jee/archive/internal/ArchiveURIConverter.java
1. WARNING: UnusedImport

The import java.io.FileNotFoundException is never used

ArchiveURIConverter.java :

13 : import java.io.FileNotFoundException;

Source File: org/eclipse/jst/jee/archive/internal/ArchiveUtil.java
1. WARNING: UnusedImport

The import java.util.HashSet is never used

ArchiveUtil.java :

19 : import java.util.HashSet;

Source File: org/eclipse/jst/jee/archive/internal/TempZipFileArchiveLoadAdapterImpl.java
1. WARNING: UnusedImport

The import java.util.zip.ZipFile is never used

TempZipFileArchiveLoadAdapterImpl.java :

14 : import java.util.zip.ZipFile;