Merge branch 'master' of https://github.com/pmd/pmd into metrics-prework

This commit is contained in:
oowekyala
2017-05-31 11:38:41 +02:00
5 changed files with 38 additions and 4 deletions

View File

@ -2,11 +2,8 @@
set -e
echo "BUILD: $BUILD"
if [ "${BUILD}" != "deploy" ]; then
echo "Skipping deployment script, it needs to run only once"
exit 0
fi
if [ "${BUILD}" = "deploy" ]; then
RELEASE_VERSION=$(./mvnw -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive org.codehaus.mojo:exec-maven-plugin:1.5.0:exec | tail -1)
@ -46,8 +43,11 @@ else
echo "Update OK"
fi
fi
if [ "${BUILD}" = "site" ]; then
echo "Adding the site to pmd.github.io..."
# clone pmd.github.io. Note: This uses the ssh key setup earlier
# In order to speed things up, we use a sparse checkout - no need to checkout all directories here
@ -71,3 +71,5 @@ mkdir pmd.github.io
git push origin master
)
fi

View File

@ -1,5 +1,8 @@
#!/bin/bash
# Make sure, everything is English...
export LANG=C.UTF8
# verify the current directory
if [ ! -f pom.xml -o ! -d ../pmd.github.io ]; then
echo "You seem to be in the wrong working directory or you don't have pmd.github.io checked out..."

View File

@ -15,6 +15,11 @@ public class ASTLambdaExpression extends AbstractJavaAccessNode {
super(p, id);
}
@Override
public boolean isFindBoundary() {
return true;
}
/** Accept the visitor. **/
public Object jjtAccept(JavaParserVisitor visitor, Object data) {
return visitor.visit(this, data);

View File

@ -105,6 +105,23 @@ public class Foo {
</test-code>
<test-code>
<description><![CDATA[
method in lambda expression is ok
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
public class Foo {
public Foo(String s) {
addActionListener(() -> bar());
addActionListener(() -> { bar(); });
addActionListener((a) -> { bar(); });
addActionListener(this::bar);
}
public void bar() {}
}
]]></code>
</test-code>
<test-code>
<description><![CDATA[
bug report 975407
]]></description>
<expected-problems>0</expected-problems>

View File

@ -17,7 +17,14 @@ This is a minor release.
### Fixed Issues
* General
* [#407](https://github.com/pmd/pmd/issues/407): \[web] Release date is not properly formatted
* java-design
* [#397](https://github.com/pmd/pmd/issues/397): \[java] ConstructorCallsOverridableMethodRule: false positive for method called from lambda expression
### API Changes
### External Contributions
* [#406](https://github.com/pmd/pmd/pull/406): \[java] False positive with lambda in java-design/ConstructorCallsOverridableMethod