Skip to content

Commit

Permalink
fix javadoc "cannot be resolved to a type"
Browse files Browse the repository at this point in the history
  • Loading branch information
EcljpseB0T authored and jukzi committed Jan 26, 2024
1 parent 6a8301e commit 0c7d5b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@

/**
* Constants used in the Jar-in-Jar loader.
*
* Some of these are duplicated in JIJConstants in the source for the Runnable Jar File Export Wizard:
* {@link org.eclipse.jdt.internal.ui.jarpackagerfat}.
*
* @since 3.6
*/
final class JIJConstants {

/** duplicates org.eclipse.jdt.internal.ui.jarpackagerfat.JIJConstants.REDIRECTED_CLASS_PATH_MANIFEST_NAME*/
static final String REDIRECTED_CLASS_PATH_MANIFEST_NAME = "Rsrc-Class-Path"; //$NON-NLS-1$
/** duplicates org.eclipse.jdt.internal.ui.jarpackagerfat.JIJConstants.REDIRECTED_MAIN_CLASS_MANIFEST_NAME*/
static final String REDIRECTED_MAIN_CLASS_MANIFEST_NAME = "Rsrc-Main-Class"; //$NON-NLS-1$
static final String DEFAULT_REDIRECTED_CLASSPATH = ""; //$NON-NLS-1$
static final String MAIN_METHOD_NAME = "main"; //$NON-NLS-1$
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,11 @@

/**
* Constants used in the fat Jar packager.
*
* Some of these are duplicated in JIJConstants in the source for the jar in jar loader:
* {@link org.eclipse.jdt.internal.jarinjarloader}.
*
* @since 3.6
*/
final class JIJConstants {

/** duplicates org.eclipse.jdt.internal.jarinjarloader.JIJConstants.REDIRECTED_CLASS_PATH_MANIFEST_NAME */
static final String REDIRECTED_CLASS_PATH_MANIFEST_NAME = "Rsrc-Class-Path"; //$NON-NLS-1$
/** duplicates org.eclipse.jdt.internal.jarinjarloader.JIJConstants.REDIRECTED_MAIN_CLASS_MANIFEST_NAME */
static final String REDIRECTED_MAIN_CLASS_MANIFEST_NAME = "Rsrc-Main-Class"; //$NON-NLS-1$
static final String CURRENT_DIR = "./"; //$NON-NLS-1$

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,6 @@

/**
* Helper to get the content of a Javadoc comment as HTML.
*
* <p>
* <strong>This is work in progress. Parts of this will later become
* API through {@link CoreJavadocContentAccess}</strong>
* </p>
*
* @since 3.4
*/
public class JavadocContentAccess2 {

Expand Down Expand Up @@ -59,7 +52,6 @@ public static String getHTMLContent(IJavaElement element, boolean useAttachedJav
/**
* @param content HTML content produced by <code>getHTMLContent(...)</code>
* @return the baseURL to use for the given content, or <code>null</code> if none
* @since 3.10
*/
public static String extractBaseURL(String content) {
return new CoreJavadocAccess().extractBaseURL(content);
Expand All @@ -73,7 +65,6 @@ public static String extractBaseURL(String content) {
* associated Javadoc
* @throws CoreException if the Java element does not exists or an exception occurs while
* accessing the file containing the package Javadoc
* @since 3.9
*/
public static String getHTMLContent(IPackageDeclaration packageDeclaration) throws CoreException {
return new CoreJavadocAccess().getHTMLContent(packageDeclaration);
Expand All @@ -89,7 +80,6 @@ public static String getHTMLContent(IPackageDeclaration packageDeclaration) thro
* Javadoc
* @throws CoreException if the Java element does not exists or an exception occurs while
* accessing the file containing the package Javadoc
* @since 3.9
*/
public static String getHTMLContent(IPackageFragment packageFragment) throws CoreException {
return new CoreJavadocAccess().getHTMLContent(packageFragment);
Expand Down

0 comments on commit 0c7d5b4

Please sign in to comment.