forked from phoedos/pmd
Remove useless addons in the Eclipse 's .classpath file.
git-svn-id: https://pmd.svn.sourceforge.net/svnroot/pmd/branches/pmd/4.2.x@6735 51baf565-9d33-0410-a72c-fc3788e3496d
This commit is contained in:
parent
d4aad400d5
commit
2a8cf167b9
@ -6,8 +6,6 @@
|
||||
<classpathentry kind="var" path="JRE_LIB"/>
|
||||
<classpathentry kind="var" path="ANT_HOME/ant.jar"/>
|
||||
<classpathentry kind="lib" path="lib/junit-4.4.jar"/>
|
||||
<classpathentry kind="var" path="ECLIPSE_HOME/plugins/org.eclipse.jdt_3.1.0.jar"/>
|
||||
<classpathentry kind="var" path="JDK1.5_HOME/lib/tools.jar"/>
|
||||
<classpathentry kind="lib" path="lib/jaxen-1.1.1.jar"/>
|
||||
<classpathentry kind="lib" path="lib/asm-3.1.jar"/>
|
||||
<classpathentry kind="output" path="build"/>
|
||||
|
@ -306,4 +306,23 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Reproducing bug [ 1955852 ] false positives for UnusedPrivateMethod & UnusedLocalField. The following valid Java code is reported with false positives for UnusedPrivateMethod and UnusedLocalVariable. It looks like the rule does not recognise explicit type arguments to generic methods.]]></description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
public class PMDFalsePositiveTest {
|
||||
private <T> T doSomething(Object param){
|
||||
return (T) param;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
PMDFalsePositiveTest test = new PMDFalsePositiveTest();
|
||||
Object o = "Awesome!";
|
||||
String result = test.<String>doSomething(o);
|
||||
System.out.println(result);
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
@ -341,4 +341,23 @@ public class Foo {
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Reproducing bug [ 1955852 ] false positives for UnusedPrivateMethod & UnusedLocalField. The following valid Java code is reported with false positives for UnusedPrivateMethod and UnusedLocalVariable. It looks like the rule does not recognise explicit type arguments to generic methods.]]></description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
public class PMDFalsePositiveTest {
|
||||
private <T> T doSomething(Object param){
|
||||
return (T) param;
|
||||
}
|
||||
|
||||
public static void main(String[] args) {
|
||||
PMDFalsePositiveTest test = new PMDFalsePositiveTest();
|
||||
Object o = "Awesome!";
|
||||
String result = test.<String>doSomething(o);
|
||||
System.out.println(result);
|
||||
}
|
||||
}
|
||||
]]></code>
|
||||
</test-code>
|
||||
</test-data>
|
||||
|
Loading…
x
Reference in New Issue
Block a user