Skip to content

Commit

Permalink
Minor corrections in javadoc to avoid warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ngaud committed Aug 25, 2015
1 parent 6cc8c80 commit c0ce9b7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,9 @@ private static URL getResource(ClassLoader classLoader, Package packagename, Str

/**
* Copied from https://github.com/gallandarakhneorg/afc/blob/master/core/vmutils/src/main/java/org/arakhne/afc/vmutil/StandardJREResourceWrapper.java
* @param classLoader - the class loader to use for loading the specified resource
* @param path - the path to the resource you're looking for
* @return the full URL of the corresponding resource
*/
private static URL getResource(ClassLoader classLoader, String path) {
if (path==null) return null;
Expand Down Expand Up @@ -207,7 +210,7 @@ private static boolean isJnarioLink(String url, Object source) {
String[] parts = ref.split(java.util.regex.Matcher.quoteReplacement(".html#")); //$NON-NLS-1$
assertEquals(
String.format("Invalid link format: %s", ref), //$NON-NLS-1$
2, parts.length);
new Integer(2), new Integer(parts.length));
fragments = parts[1].split(java.util.regex.Matcher.quoteReplacement("_") + "+"); //$NON-NLS-1$ //$NON-NLS-2$
StringBuilder b = new StringBuilder();
for (String s : fragments) {
Expand Down Expand Up @@ -510,7 +513,7 @@ public static boolean _should_be(XBooleanLiteral actual, Object expected) {
b = (Boolean) expected;
} else {
try {
b = Boolean.parseBoolean(expected.toString());
b = new Boolean(expected.toString());
} catch (Throwable _) {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ public String[][] getBootpathExt(ILaunchConfiguration configuration)
int index;
Pair<IRuntimeClasspathEntry, Integer> pair = getJreEntry(entries, bootEntriesPrepend);
jreEntry = pair.getKey();
index = pair.getValue();
index = pair.getValue().intValue();
IRuntimeClasspathEntry[] bootEntriesPrep = JavaRuntime
.resolveRuntimeClasspath(
bootEntriesPrepend
Expand Down Expand Up @@ -415,7 +415,9 @@ private static ISREInstall getSREFromExtension(IProject project, boolean verify)
/** Replies the project SRE from the given configuration.
*
* @param configuration - the configuration to read.
* @param verify - if true verify the SRE validity, do nothing otherwise
* @return the project SRE or <code>null</code>.
* @throws CoreException
*/
private ISREInstall getProjectSpecificSRE(ILaunchConfiguration configuration, boolean verify) throws CoreException {
IJavaProject jprj = getJavaProject(configuration);
Expand Down

0 comments on commit c0ce9b7

Please sign in to comment.