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 )
The import org.eclipse.jst.j2ee.internal.J2EEVersionConstants is never used
XMLResourceImpl.java :
22 : import org.eclipse.jst.j2ee.internal.J2EEVersionConstants;
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;
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);
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);
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});
The import java.io.FileNotFoundException is never used
J2EEXmlDtDEntityResolver.java :
15 : import java.io.FileNotFoundException;
The import org.xml.sax.SAXException is never used
J2EEXmlDtDEntityResolver.java :
22 : import org.xml.sax.SAXException;
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;
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;
The import org.eclipse.emf.common.command.Command is never used
ValidateXmlCommand.java :
22 : import org.eclipse.emf.common.command.Command;
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;
The import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile is never used
UncontainedModuleFileException.java :
13 : import org.eclipse.jst.j2ee.commonarchivecore.internal.ModuleFile;
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;
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;
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;
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() {
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);
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);
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);
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();
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);
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();
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);
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;
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;
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());
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());
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;
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;
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;
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());
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());
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());
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());
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);
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)});
Null pointer access: The variable ejbCollection can only be null at this location
EarValidator.java :
466 : if( ejbCollection != null || !ejbCollection.isEmpty() ) {
Null pointer access: The variable ejbCollection can only be null at this location
EarValidator.java :
762 : if( ejbCollection != null || !ejbCollection.isEmpty() ) {
Null pointer access: The variable ejbCollection can only be null at this location
EarValidator.java :
923 : if( ejbCollection != null || !ejbCollection.isEmpty() ) {
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);
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)});
The import java.io.FileNotFoundException is never used
ArchiveURIConverter.java :
13 : import java.io.FileNotFoundException;
The import java.util.HashSet is never used
ArchiveUtil.java :
19 : import java.util.HashSet;
The import java.util.zip.ZipFile is never used
TempZipFileArchiveLoadAdapterImpl.java :
14 : import java.util.zip.ZipFile;