This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-beanutils.git


The following commit(s) were added to refs/heads/master by this push:
     new d141c48  Use GitHub Actions for CI builds. Fix Javadoc.
d141c48 is described below

commit d141c483678259034c220fb70b3aaa67b5d7cb3b
Author: Gary Gregory <gardgreg...@gmail.com>
AuthorDate: Mon Oct 21 10:13:03 2019 -0400

    Use GitHub Actions for CI builds. Fix Javadoc.
---
 .github/workflows/maven.yml                        | 37 ++++++++++++++++++++++
 pom.xml                                            |  1 +
 .../apache/commons/beanutils2/BeanPredicate.java   |  4 +--
 3 files changed, 40 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
new file mode 100644
index 0000000..daead2c
--- /dev/null
+++ b/.github/workflows/maven.yml
@@ -0,0 +1,37 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#      http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+name: Java CI
+
+on: [push, pull_request]
+
+jobs:
+  build:
+
+    runs-on: ubuntu-latest
+    strategy:
+      matrix:
+        java: [ '1.8', '11.0.4', '12.0.2' ]
+        
+    steps:
+    - uses: actions/checkout@v1
+    - name: Set up JDK ${{ matrix.java }}
+      uses: actions/setup-java@v1
+      with:
+        java-version: ${{ matrix.java }}
+    - name: Build with Maven
+      run: mvn -V --file pom.xml
+
+# For Java 11, you can be more strict: 
-DadditionalJOption=-Xdoclint/package:-org.apache.commons.configuration2.plist
diff --git a/pom.xml b/pom.xml
index af845d7..fff76a5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -344,6 +344,7 @@
   </dependencies>
 
   <build>
+      <defaultGoal>clean apache-rat:check verify javadoc:javadoc</defaultGoal>
       <plugins>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
diff --git a/src/main/java/org/apache/commons/beanutils2/BeanPredicate.java 
b/src/main/java/org/apache/commons/beanutils2/BeanPredicate.java
index e894b5b..3e49829 100644
--- a/src/main/java/org/apache/commons/beanutils2/BeanPredicate.java
+++ b/src/main/java/org/apache/commons/beanutils2/BeanPredicate.java
@@ -56,7 +56,7 @@ public class BeanPredicate<T> implements Predicate<T> {
      * Evaluates the given object by applying the {@link #getPredicate()}
      * to a property value named by {@link #getPropertyName()}.
      *
-     * @param object The object being evaluated
+     * @param object The object to test
      * @return the result of the predicate evaluation
      * @throws IllegalArgumentException when the property cannot be evaluated
      */
@@ -108,7 +108,7 @@ public class BeanPredicate<T> implements Predicate<T> {
 
     /**
      * Gets the <code>Predicate</code> to be applied to the value of the named 
property
-     * during {@link #evaluate}.
+     * during {@link #test(Object)}.
      * @return <code>Predicate</code>, not null
      */
     public Predicate<T> getPredicate() {

Reply via email to