forked from phoedos/pmd
Fix last Java warnings
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/trunk@4598 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
@@ -66,6 +66,9 @@ import org.eclipse.jdt.core.JavaModelException;
|
||||
* @version $$Revision$$
|
||||
*
|
||||
* $$Log$
|
||||
* $Revision 1.5 2006/10/08 22:19:34 phherlin
|
||||
* $Fix last Java warnings
|
||||
* $
|
||||
* $Revision 1.4 2006/10/07 16:01:21 phherlin
|
||||
* $Integrate Sven updates
|
||||
* $$
|
||||
@@ -333,25 +336,33 @@ public class FileRecord extends AbstractPMDRecord {
|
||||
* @return the Number of Methods
|
||||
*/
|
||||
public int getNumberOfMethods() {
|
||||
return numberOfMethods; // deactivate this method for now
|
||||
return this.numberOfMethods; // deactivate this method for now
|
||||
}
|
||||
|
||||
/* @see net.sourceforge.pmd.ui.model.AbstractPMDRecord#addResource(org.eclipse.core.resources.IResource) */
|
||||
/**
|
||||
* @see net.sourceforge.pmd.ui.model.AbstractPMDRecord#addResource(org.eclipse.core.resources.IResource)
|
||||
*/
|
||||
public AbstractPMDRecord addResource(IResource resource) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/* @see net.sourceforge.pmd.ui.model.AbstractPMDRecord#removeResource(org.eclipse.core.resources.IResource) */
|
||||
/**
|
||||
* @see net.sourceforge.pmd.ui.model.AbstractPMDRecord#removeResource(org.eclipse.core.resources.IResource)
|
||||
*/
|
||||
public AbstractPMDRecord removeResource(IResource resource) {
|
||||
return null;
|
||||
}
|
||||
|
||||
/* @see net.sourceforge.pmd.ui.model.AbstractPMDRecord#getName() */
|
||||
/**
|
||||
* @see net.sourceforge.pmd.ui.model.AbstractPMDRecord#getName()
|
||||
*/
|
||||
public String getName() {
|
||||
return resource.getName();
|
||||
return this.resource.getName();
|
||||
}
|
||||
|
||||
/* @see net.sourceforge.pmd.ui.model.AbstractPMDRecord#getResourceType() */
|
||||
/**
|
||||
* @see net.sourceforge.pmd.ui.model.AbstractPMDRecord#getResourceType()
|
||||
*/
|
||||
public int getResourceType() {
|
||||
return AbstractPMDRecord.TYPE_FILE;
|
||||
}
|
||||
|
@@ -37,12 +37,7 @@
|
||||
package net.sourceforge.pmd.ui.model;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collection;
|
||||
import java.util.Collections;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
import java.util.Set;
|
||||
import java.util.SortedSet;
|
||||
|
||||
import net.sourceforge.pmd.ui.PMDUiPlugin;
|
||||
import net.sourceforge.pmd.ui.nls.StringKeys;
|
||||
@@ -64,6 +59,9 @@ import org.eclipse.jdt.core.JavaModelException;
|
||||
* @version $$Revision$$
|
||||
*
|
||||
* $$Log$
|
||||
* $Revision 1.5 2006/10/08 22:19:34 phherlin
|
||||
* $Fix last Java warnings
|
||||
* $
|
||||
* $Revision 1.4 2006/10/07 16:01:21 phherlin
|
||||
* $Integrate Sven updates
|
||||
* $$
|
||||
|
@@ -44,6 +44,7 @@ import java.util.Properties;
|
||||
import net.sourceforge.pmd.ui.PMDUiPlugin;
|
||||
|
||||
import org.apache.log4j.Logger;
|
||||
import org.eclipse.core.runtime.FileLocator;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
|
||||
/**
|
||||
@@ -54,6 +55,9 @@ import org.eclipse.core.runtime.Path;
|
||||
* @version $Revision$
|
||||
*
|
||||
* $Log$
|
||||
* Revision 1.3 2006/10/08 22:19:33 phherlin
|
||||
* Fix last Java warnings
|
||||
*
|
||||
* Revision 1.2 2006/10/07 16:01:21 phherlin
|
||||
* Integrate Sven updates
|
||||
*
|
||||
@@ -89,7 +93,7 @@ public class StringTable {
|
||||
try {
|
||||
if (this.table == null) {
|
||||
this.table = new Properties();
|
||||
final URL messageTableUrl = PMDUiPlugin.getDefault().find(new Path("$nl$/messages.properties"));
|
||||
final URL messageTableUrl = FileLocator.find(PMDUiPlugin.getDefault().getBundle(), new Path("$nl$/messages.properties"), null);
|
||||
if (messageTableUrl != null) {
|
||||
final InputStream is = messageTableUrl.openStream();
|
||||
this.table.load(is);
|
||||
|
Reference in New Issue
Block a user